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

  • Method Details

    • modify

      public Entry modify(@Nullable BiFunction<String,String,String> modify)
      Sets the modify function.
      Parameters:
      modify - the modify function
      Returns:
      this instance
    • modify

      public Entry modify(@NonNull String value, @Nullable BiFunction<String,String,String> modify)
      Sets the modify function with a value parameter.
      Parameters:
      value - the value to perform a modification with
      modify - the modify function
      Returns:
      this instance
    • set

      public Entry set(@Nullable Object s)
      Sets the new property value.
      Parameters:
      s - The new value
      Returns:
      this instance
    • modify

      @Nullable protected BiFunction<String,String,String> modify()
      Returns the modify function.
      Returns:
      the modify function, or null if not set
    • modifyValue

      @NonNull protected String modifyValue()
      Returns the value to be used in the modify_ function.
      Returns:
      the modify value, never null