gnu.mapping
Class PropertyKey<T>
java.lang.Object
gnu.mapping.PropertyKey<T>
- Direct Known Subclasses:
- LazyPropertyKey
public class PropertyKey<T>
- extends java.lang.Object
PropertySet keys that provide statically-typeable values.
Method Summary |
T |
get(PropertySet container)
Get the value associated with this key in a given PropertySet . |
T |
get(PropertySet container,
T defaultValue)
Get the value associated with this key in a given PropertySet . |
void |
set(PropertySet container,
T value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyKey
public PropertyKey(java.lang.String name)
get
public T get(PropertySet container,
T defaultValue)
- Get the value associated with this key in a given
PropertySet
.
Return defaultValue
if there is no association for this key.
get
public final T get(PropertySet container)
- Get the value associated with this key in a given
PropertySet
.
Return null if there is no association for this key.
set
public void set(PropertySet container,
T value)