T
- the generic typepublic class DistributedProperty<T>
extends java.lang.Object
Constructor and Description |
---|
DistributedProperty(DistributedPropertyMap map,
java.lang.String key)
Instantiates a new distributed property.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Gets the key.
|
T |
getValue()
Gets the value.
|
void |
registerChangeListener(DistributedPropertyChangedAction<T> pca)
Register change listener.
|
void |
setValue(T value)
Sets the value.
|
void |
unregisterChangeListener(DistributedPropertyChangedAction<T> pca)
Unregister change listener.
|
public DistributedProperty(DistributedPropertyMap map, java.lang.String key)
map
- the mapkey
- the keypublic java.lang.String getKey()
public T getValue()
public void registerChangeListener(DistributedPropertyChangedAction<T> pca)
pca
- the pcapublic void setValue(T value)
value
- the new valuepublic void unregisterChangeListener(DistributedPropertyChangedAction<T> pca)
pca
- the pca