Class Entry

java.lang.Object
rife.bld.extension.propertyfile.EntryBase<Entry>
rife.bld.extension.propertyfile.Entry

public class Entry extends EntryBase<Entry>
Declares the modifications to be made to a String-based property.
Since:
1.0
Author:
Erik C. Thauvin, Geert Bevin
  • Constructor Details

    • Entry

      public Entry(String key)
      Creates a new entry.
      Parameters:
      key - the required property key
  • Method Details

    • modify

      protected BiFunction<String,String,String> modify()
      Returns the modify function.
      Returns:
      the modify function
    • modify

      public Entry modify(BiFunction<String,String,String> modify)
      Sets the modify function.
      Parameters:
      modify - the modify function
    • modify

      public Entry modify(String value, BiFunction<String,String,String> modify)
      Sets the modify function.
      Parameters:
      value - the value to perform a modification with
      modify - the modify function
    • modifyValue

      protected String modifyValue()
      Returns the value to be used in the modify_ function.
      Returns:
      the modify value
    • set

      public Entry set(Object s)
      Sets the new property value.
      Parameters:
      s - The new value
      Returns:
      the entry