public class LazyPropertyKey<T> extends PropertyKey<T>
"ClassName:fieldName"
: In this case "fieldName"
must
be the name of a static field in "ClassName"
, of type T
.
"*ClassName:methodName"
: In this case "methodName"
must be the name of a static method that takes one parameter
(the PropertySet
), and returns an object of type T
.
Constructor and Description |
---|
LazyPropertyKey(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
T |
get(PropertySet container,
T defaultValue)
Get the value associated with this key in a given
PropertySet . |
void |
set(PropertySet container,
java.lang.String specifier) |
get, set
public T get(PropertySet container, T defaultValue)
PropertyKey
PropertySet
.
Return defaultValue
if there is no association for this key.get
in class PropertyKey<T>
public void set(PropertySet container, java.lang.String specifier)