Class AbstractValue<T>
java.lang.Object
dev.pfaff.altargui.util.listenable.AbstractSignal
dev.pfaff.altargui.util.listenable.AbstractValue<T>
- All Implemented Interfaces:
ReadableValue<T>
,Signal
,Value<T>
,WritableValue<T>
- Direct Known Subclasses:
SlotValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ListenerDisposer
Adds a listener.protected final void
notifyUpdateValue
(T value) abstract boolean
valueNoNotify
(T value) final void
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.ReadableValue
read
-
Constructor Details
-
AbstractValue
public AbstractValue()
-
-
Method Details
-
listen
-
notifyUpdateValue
-
valueNoNotify
- Returns:
- whether the value was updated.
-
write
- Specified by:
write
in interfaceWritableValue<T>
-