Class EntryBase<T>

java.lang.Object
rife.bld.extension.propertyfile.EntryBase<T>
Direct Known Subclasses:
Entry, EntryDate, EntryInt

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

    • EntryBase

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

    • calc

      protected IntFunction<Integer> calc()
      Returns the calculation function.
      Returns:
      the calc function
    • calc

      public T calc(IntFunction<Integer> calc)
      Sets the calculation function.
      Parameters:
      calc - the calc function
    • defaultValue

      protected Object defaultValue()
      Returns the default value.
      Returns:
      the default value
    • defaultValue

      public T defaultValue(Object defaultValue)
      Sets the initial value to set the property to, if not already defined.
      Parameters:
      defaultValue - the default value
    • delete

      public T delete()
      Indicates that the property is to be deleted.
    • isDelete

      protected boolean isDelete()
      Returns true if the property is to be deleted.
      Returns:
      true or false
    • key

      protected String key()
      Returns the key of the property.
      Returns:
      the key
    • key

      public T key(String key)
      Sets the key of the property.
      Parameters:
      key - the property key
      Returns:
      this instance
    • newValue

      protected Object newValue()
      Returns the new value to set the property) to.
      Returns:
      the new value
    • newValue

      protected void newValue(Object newValue)
      Sets a new value for property.
      Parameters:
      newValue - the new value
    • pattern

      protected Object pattern()
      Returns the pattern.
      Returns:
      the pattern
    • pattern

      public T pattern(Object pattern)
      Sets the Formatter pattern.
      Parameters:
      pattern - the pattern