|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.util.observer.impl.LiveValueFactory
public final class LiveValueFactory
Convenience class providing a few standard LiveValues.
| Method Summary | ||
|---|---|---|
static
|
shadow(ObservableValue<? extends T> lower,
ObservableValue<? extends T> upper)
Returns a LiveValue that yields the value of upper
if it is not null, or the value of lower otherwise. |
|
static
|
theElementIn(OC oc)
Returns a LiveValue backed by a Collection that yields the collection's unique element or null if there is no such element. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T,OC extends ObservableValue<? extends Collection<? extends T>>> LiveValue<T> theElementIn(OC oc)
null if there is no such element.
oc - the backing collection
public static <T> LiveValue<T> shadow(ObservableValue<? extends T> lower,
ObservableValue<? extends T> upper)
upper
if it is not null, or the value of lower otherwise.
lower - .upper - .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||