public abstract static class ChainedDynamicProperty.ChainLink<T> extends java.lang.Object implements Property<T>
| Constructor and Description |
|---|
ChainedDynamicProperty.ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty) |
ChainedDynamicProperty.ChainLink(T defaultValue)
Used for end node
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(java.lang.Runnable r)
Add the callback to be triggered when the value of the property is
changed
|
protected void |
checkAndFlip() |
T |
get() |
long |
getChangedTimestamp()
Gets the time (in milliseconds past the epoch) when the property was last
set/changed.
|
T |
getDefaultValue()
Get the default property value specified at creation time
|
java.lang.String |
getName()
Get the name of the property
|
protected abstract Property<T> |
getReferencedProperty()
Get the property referenced by this ChainLink
|
T |
getValue()
Get the latest value for the given property
|
abstract boolean |
isValueAcceptable() |
void |
removeAllCallbacks()
Remove callback from callbacks list
|
java.lang.String |
toString() |
public ChainedDynamicProperty.ChainLink(T defaultValue)
public ChainedDynamicProperty.ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty)
nextProperty - public abstract boolean isValueAcceptable()
protected abstract Property<T> getReferencedProperty()
protected void checkAndFlip()
public T get()
public T getValue()
Propertypublic T getDefaultValue()
PropertygetDefaultValue in interface Property<T>public java.lang.String getName()
Propertypublic long getChangedTimestamp()
PropertygetChangedTimestamp in interface Property<T>public void addCallback(java.lang.Runnable r)
PropertyaddCallback in interface Property<T>r - public void removeAllCallbacks()
removeAllCallbacks in interface Property<T>public java.lang.String toString()
toString in class java.lang.Object