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
Observer
s.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, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
map, over, setDefault, tryGet, unset
anonymize, decoupleValue, immutable, over, over
public IdentityExpression()
null
.public IdentityExpression(T value)
value
- The initial value of the expression.public T set(T value)
Property
protected final T getValueImpl(boolean dirty)
ActiveExpression
Expression
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
.