Modifier and Type | Class and Description |
---|---|
static class |
Values.T2<A,B>
Used by
join(ValueView,ValueView) . |
static class |
Values.T3<A,B,C>
Used by
join(ValueView,ValueView,ValueView) . |
Modifier and Type | Method and Description |
---|---|
static ValueView<Boolean> |
and(Collection<? extends ValueView<Boolean>> values)
Returns a value which is the logical AND of the supplied values.
|
static ValueView<Boolean> |
and(ValueView<Boolean>... values)
Returns a value which is the logical AND of the supplied values.
|
static ValueView<Boolean> |
and(ValueView<Boolean> one,
ValueView<Boolean> two)
Returns a value which is the logical AND of the supplied values.
|
static <T> ValueView<T> |
asValue(SignalView<T> signal,
T initial)
Returns a view of the supplied signal as a value.
|
static <A,B> ValueView<Values.T2<A,B>> |
join(ValueView<A> a,
ValueView<B> b)
Returns a reactive value which is triggered when either of
a, b emits an event. |
static <A,B,C> ValueView<Values.T3<A,B,C>> |
join(ValueView<A> a,
ValueView<B> b,
ValueView<C> c)
Returns a reactive value which is triggered when either of
a, b, c emits an event. |
static ValueView<Boolean> |
not(ValueView<Boolean> value)
Returns a value which is the logical NOT of the supplied value.
|
static ValueView<Boolean> |
or(Collection<? extends ValueView<Boolean>> values)
Returns a value which is the logical OR of the supplied values.
|
static ValueView<Boolean> |
or(ValueView<Boolean>... values)
Returns a value which is the logical OR of the supplied values.
|
static ValueView<Boolean> |
or(ValueView<Boolean> one,
ValueView<Boolean> two)
Returns a value which is the logical OR of the supplied values.
|
static ValueView<Boolean> |
toggler(SignalView<?> signal,
boolean initial)
Creates a boolean value that is toggled every time the supplied signal fires.
|
public static <A,B> ValueView<Values.T2<A,B>> join(ValueView<A> a, ValueView<B> b)
a, b
emits an event. The
mapped value will retain connections to a+b
only while it itself has connections.public static <A,B,C> ValueView<Values.T3<A,B,C>> join(ValueView<A> a, ValueView<B> b, ValueView<C> c)
a, b, c
emits an event.
The mapped value will retain connections to a+b+c
only while it itself has
connections.public static ValueView<Boolean> toggler(SignalView<?> signal, boolean initial)
signal
- the signal that will trigger the toggling.initial
- the initial value of the to be toggled value.public static ValueView<Boolean> not(ValueView<Boolean> value)
public static ValueView<Boolean> and(ValueView<Boolean> one, ValueView<Boolean> two)
@SafeVarargs public static ValueView<Boolean> and(ValueView<Boolean>... values)
public static ValueView<Boolean> and(Collection<? extends ValueView<Boolean>> values)
public static ValueView<Boolean> or(ValueView<Boolean> one, ValueView<Boolean> two)
@SafeVarargs public static ValueView<Boolean> or(ValueView<Boolean>... values)
public static ValueView<Boolean> or(Collection<? extends ValueView<Boolean>> values)
public static <T> ValueView<T> asValue(SignalView<T> signal, T initial)
initial
until the signal fires, at which time the value will be updated with the emitted value.Copyright © 2017. All rights reserved.