T - The type of the expression.public class IdentityExpression<T> extends ActiveExpression<T> implements Property<T>
Expression based on the behavior of the IdentityProperty
class, with the lazy updating behavior of LockingExpression for
Observers.| Constructor and Description |
|---|
IdentityExpression()
Construct with a default value of
null. |
IdentityExpression(T value)
Construct with the given default value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the current value of the property.
|
protected T |
getValueImpl(boolean dirty)
Implementing classes should compute the value of the
Expression here. |
T |
set(T value)
Set the value of this property to the given value.
|
beginWrite, cancelChange, createObservable, endWrite, fireChange, getValue, invalidations, isChanging, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap, over, setDefault, tryGet, unsetanonymize, decoupleValue, immutable, over, overpublic IdentityExpression()
null.public IdentityExpression(T value)
value - The initial value of the expression.public T set(T value)
Propertyprotected final T getValueImpl(boolean dirty)
ActiveExpressionExpression here.
Read lock is guaranteed to be obtained. This method should never be invoked
manually.getValueImpl in class ActiveExpression<T>dirty - Whether the expression has been mutated since this method was last
invoked.Expression.