Package rife.bld.extension.propertyfile
Class EntryBase<T>
java.lang.Object
rife.bld.extension.propertyfile.EntryBase<T>
Declares the modifications to be made to a
property.- Since:
- 1.0
- Author:
- Erik C. Thauvin, Geert Bevin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IntFunction<Integer>calc()Returns the calculation function.calc(IntFunction<Integer> calc) Sets the calculation function.protected ObjectReturns the default value.defaultValue(Object defaultValue) Sets the initial value to set thepropertyto, if not already defined.delete()Indicates that thepropertyis to be deleted.protected booleanisDelete()Returnstrueif thepropertyis to be deleted.protected Stringkey()Returns the key of theproperty.Sets the key of theproperty.protected ObjectnewValue()Returns the new value to set theproperty)to.protected voidSets a new value forproperty.protected Objectpattern()Returns the pattern.Sets theFormatterpattern.
-
Constructor Details
-
EntryBase
Creates a newentry.- Parameters:
key- the required property key
-
-
Method Details
-
calc
Returns the calculation function.- Returns:
- the calc function
-
calc
Sets the calculation function.- Parameters:
calc- the calc function
-
defaultValue
Returns the default value.- Returns:
- the default value
-
defaultValue
Sets the initial value to set thepropertyto, if not already defined.- Parameters:
defaultValue- the default value
-
delete
Indicates that thepropertyis to be deleted. -
isDelete
protected boolean isDelete()Returnstrueif thepropertyis to be deleted.- Returns:
trueorfalse
-
key
Returns the key of theproperty.- Returns:
- the key
-
key
Sets the key of theproperty.- Parameters:
key- thepropertykey- Returns:
- this instance
-
newValue
Returns the new value to set theproperty)to.- Returns:
- the new value
-
newValue
Sets a new value forproperty.- Parameters:
newValue- the new value
-
pattern
Returns the pattern.- Returns:
- the pattern
-
pattern
Sets theFormatterpattern.- Parameters:
pattern- the pattern
-