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
-
Method Summary
Modifier and TypeMethodDescriptionprotected IntFunction<Integer>
calc()
Returns the calculation function.calc
(IntFunction<Integer> calc) Sets the calculation function.protected Object
Returns the default value.defaultValue
(Object defaultValue) Sets the initial value to set theproperty
to, if not already defined.delete()
Indicates that theproperty
is to be deleted.protected boolean
isDelete()
Returnstrue
if theproperty
is to be deleted.protected String
key()
Returns the key of theproperty
.Sets the key of theproperty
.protected Object
newValue()
Returns the new value to set theproperty)
to.protected void
Sets a new value forproperty
.protected Object
pattern()
Returns the pattern.Sets theFormatter
pattern.
-
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 theproperty
to, if not already defined.- Parameters:
defaultValue
- the default value
-
delete
Indicates that theproperty
is to be deleted. -
isDelete
protected boolean isDelete()Returnstrue
if theproperty
is to be deleted.- Returns:
true
orfalse
-
key
Returns the key of theproperty
.- Returns:
- the key
-
key
Sets the key of theproperty
.- Parameters:
key
- theproperty
key- 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 theFormatter
pattern.- Parameters:
pattern
- the pattern
-