public enum NbpBlockingOperatorMostRecent extends java.lang.Enum<NbpBlockingOperatorMostRecent>

| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.Iterable<T> |
mostRecent(NbpObservable<? extends T> source,
T initialValue)
Returns an
Iterable that always returns the item most recently emitted by the Observable. |
static NbpBlockingOperatorMostRecent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NbpBlockingOperatorMostRecent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static NbpBlockingOperatorMostRecent[] values()
for (NbpBlockingOperatorMostRecent c : NbpBlockingOperatorMostRecent.values()) System.out.println(c);
public static NbpBlockingOperatorMostRecent valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static <T> java.lang.Iterable<T> mostRecent(NbpObservable<? extends T> source, T initialValue)
Iterable that always returns the item most recently emitted by the Observable.T - the value typesource - the source ObservableinitialValue - a default item to return from the Iterable if source has not yet emitted any
itemsIterable that always returns the item most recently emitted by source, or
initialValue if source has not yet emitted any items