public class Value<T> extends AbstractValue<T>
Reactor.RListener
ValueView.Listener<T>
Constructor and Description |
---|
Value(T value)
Creates an instance with the supplied starting value.
|
Modifier and Type | Method and Description |
---|---|
static <T> Value<T> |
create(T value)
Convenience method for creating an instance with the supplied starting value.
|
T |
get()
Returns the current value.
|
Slot<T> |
slot()
Returns a slot which can be used to wire this value to the emissions of a
Signal or
another value. |
T |
update(T value)
Updates this instance with the supplied value.
|
T |
updateForce(T value)
Updates this instance with the supplied value.
|
changes, connect, connect, connect, connectNotify, connectNotify, connectNotify, disconnect, equals, flatMap, hashCode, map, toString, when
clearConnections, hasConnections
public Value(T value)
public static <T> Value<T> create(T value)
public T update(T value)
Object.equals(java.lang.Object)
.public T updateForce(T value)
public Slot<T> slot()
Signal
or
another value.Copyright © 2017. All rights reserved.