T
- public class ValueSubscriber<T> extends java.lang.Object implements org.reactivestreams.Subscriber<T>, Value<T>
ValueSubscriber<Integer> anInt = ValueSubscriber.subscriber();
ReactiveSeq.of(1,2,3)
.publish(anInt);
Xor<Throwable,Integer> xor = anInt.toXor();
Try<Integer,Throwable> myTry = xor.toTry();
Maybe<Integer> maybe = myTry.toMaybe();
Optional<Integer> maybe = maybe.toOptional();
Value.ValueImpl<T>
Convertable.SupplierToConvertable<T>
Modifier and Type | Method and Description |
---|---|
T |
get() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
void |
requestOne() |
static <T> ValueSubscriber<T> |
subscriber() |
static <T> ValueSubscriber<T> |
subscriber(java.lang.Runnable onComplete) |
Ior<java.lang.Throwable,T> |
toIor() |
<X extends java.lang.Throwable> |
toTry(java.lang.Class<X>... classes) |
Xor<java.lang.Throwable,T> |
toXor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect, fold, fold, generate, iterate, mapReduce, mkString, newSubscriber, of, stream, subscribe, test, toDequeX, toEvalAlways, toEvalLater, toEvalNow, toFeatureToggle, toFutureStream, toFutureStream, toLazyImmutable, toList, toListX, toMaybe, toMutable, toPBagX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toTry, toTry, toXor, unapply
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldable, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, xMatch
collect, fromSupplier, isPresent, iterator, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toFutureWAsync, toFutureWAsync, toOptional, toOptionalAtomicReference, toStream, visit
public static <T> ValueSubscriber<T> subscriber(java.lang.Runnable onComplete)
public static <T> ValueSubscriber<T> subscriber()
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe
in interface org.reactivestreams.Subscriber<T>
public void onError(java.lang.Throwable t)
onError
in interface org.reactivestreams.Subscriber<T>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<T>
public void requestOne()
public T get()
get
in interface Convertable<T>
get
in interface java.util.function.Supplier<T>