T
- The value type of the propertypublic interface Property<T>
Modifier and Type | Method and Description |
---|---|
void |
addCallback(java.lang.Runnable callback)
Add the callback to be triggered when the value of the property is
changed
|
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
|
T |
getValue()
Get the latest value for the given property
|
void |
removeAllCallbacks()
remove all callbacks registered through the instance of property
|
T getValue()
T getDefaultValue()
java.lang.String getName()
long getChangedTimestamp()
void addCallback(java.lang.Runnable callback)
callback
- void removeAllCallbacks()