Class SlotValue<T>
java.lang.Object
dev.pfaff.altargui.util.listenable.AbstractSignal
dev.pfaff.altargui.util.listenable.AbstractValue<T>
dev.pfaff.altargui.util.listenable.SlotValue<T>
- All Implemented Interfaces:
Signal
,Value<T>
,WritableValue<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
atomicCompareAndSet
(T expected, T value) Identity is used instead ofequals(Object, Object)
.final T
read()
This may be expensive!final boolean
valueNoNotify
(T value) Methods inherited from class dev.pfaff.altargui.util.listenable.AbstractValue
listen, notifyUpdateValue, write
Methods inherited from class dev.pfaff.altargui.util.listenable.AbstractSignal
forEachListener, listen, listen, notifyListenersAsRunnable, removeListener
-
Constructor Details
-
SlotValue
-
-
Method Details
-
read
-
valueNoNotify
- Specified by:
valueNoNotify
in classAbstractValue<T>
- Returns:
- whether the value was updated.
-
atomicCompareAndSet
-