Package gnu.mapping
Class PropertyKey<T>
- java.lang.Object
-
- gnu.mapping.PropertyKey<T>
-
- Direct Known Subclasses:
LazyPropertyKey
public class PropertyKey<T> extends Object
PropertySet keys that provide statically-typeable values.
-
-
Constructor Summary
Constructors Constructor Description PropertyKey(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(PropertySet container)
Get the value associated with this key in a givenPropertySet
.T
get(PropertySet container, T defaultValue)
Get the value associated with this key in a givenPropertySet
.void
set(PropertySet container, T value)
-
-
-
Constructor Detail
-
PropertyKey
public PropertyKey(String name)
-
-
Method Detail
-
get
public T get(PropertySet container, T defaultValue)
Get the value associated with this key in a givenPropertySet
. ReturndefaultValue
if there is no association for this key.
-
get
public final T get(PropertySet container)
Get the value associated with this key in a givenPropertySet
. Return null if there is no association for this key.
-
set
public void set(PropertySet container, T value)
-
-