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
writeNoNotify
(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.pfaff.altargui.util.listenable.Signal
listenAndInvoke
Methods inherited from interface dev.pfaff.altargui.util.listenable.Value
listen, listenAndInvoke, map
-
Constructor Details
-
SlotValue
-
-
Method Details
-
read
-
writeNoNotify
- Specified by:
writeNoNotify
in classAbstractValue<T>
- Returns:
- whether the value was updated.
-
atomicCompareAndSet
-