public abstract static class ChainedDynamicProperty.ChainLink<T> extends java.lang.Object implements Property<T>
Constructor and Description |
---|
ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty) |
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 ChainLink(T defaultValue)
public ChainLink(ChainedDynamicProperty.ChainLink<T> nextProperty)
nextProperty
- public abstract boolean isValueAcceptable()
protected abstract Property<T> getReferencedProperty()
protected void checkAndFlip()
public T get()
public T getValue()
Property
public T getDefaultValue()
Property
getDefaultValue
in interface Property<T>
public java.lang.String getName()
Property
public long getChangedTimestamp()
Property
getChangedTimestamp
in interface Property<T>
public void addCallback(java.lang.Runnable r)
Property
addCallback
in interface Property<T>
r
- public void removeAllCallbacks()
removeAllCallbacks
in interface Property<T>
public java.lang.String toString()
toString
in class java.lang.Object