public class CachedDynamicBooleanProperty extends DynamicBooleanProperty
DynamicBooleanProperty that caches the primitive value whenever it is changed.
This can give improved performance due to avoiding the unboxing, at the expense of additional
memory usage.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
primitiveValue |
defaultValue, prop| Constructor and Description |
|---|
CachedDynamicBooleanProperty(java.lang.String propName,
boolean defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
chooseValue()
Get the current value from the underlying DynamicProperty
|
boolean |
get()
Get the current cached value.
|
java.lang.Boolean |
getValue()
Get current typed value of the property.
|
protected void |
propertyChanged()
Called when the property value is updated.
|
addCallback, addValidator, getChangedTimestamp, getDefaultValue, getDynamicProperty, getName, propertyChanged, registerSubClassWithNoCallback, removeAllCallbacks, toString, validatepublic CachedDynamicBooleanProperty(java.lang.String propName,
boolean defaultValue)
protected void propertyChanged()
PropertyWrapperpropertyChanged in class PropertyWrapper<java.lang.Boolean>protected boolean chooseValue()
public boolean get()
get in class DynamicBooleanPropertypublic java.lang.Boolean getValue()
PropertyWrappergetValue in interface Property<java.lang.Boolean>getValue in class DynamicBooleanProperty