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>
Matchable.AsMatchable, Matchable.AutoCloseableMatchableIterable<TYPE>, Matchable.CheckValue1<T,R>, Matchable.CheckValue2<T1,T2,R>, Matchable.CheckValue3<T1,T2,T3,R>, Matchable.CheckValue4<T1,T2,T3,T4,R>, Matchable.CheckValue5<T1,T2,T3,T4,T5,R>, Matchable.CheckValueOpt<T,R>, Matchable.CheckValues<T,R>, Matchable.MatchableIterable<TYPE>, Matchable.MatchableObject<TYPE>, Matchable.MatchableOptional<T>, Matchable.MatchSelf<TYPE>, Matchable.MTuple1<T1>, Matchable.MTuple2<T1,T2>, Matchable.MTuple3<T1,T2,T3>, Matchable.MTuple4<T1,T2,T3,T4>, Matchable.MTuple5<T1,T2,T3,T4,T5>, Matchable.MXor<T1,T2>, Matchable.ValueAndOptionalMatcher<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
convertTo, convertToAsync, fold, fold, generate, getMatchable, iterate, mapReduce, mkString, newSubscriber, of, stream, subscribe, test, toDequeX, toEvalAlways, toEvalLater, toEvalNow, toFutureStream, toFutureStream, toLazyImmutable, toListX, toMaybe, toMutable, toPBagX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toTry, unapply
foldRight, foldRight, foldRight, foldRightMapToType, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce
from, from, from, from, from, from, from, from, from, from, fromCharSequence, fromIterable, fromOptional, listOfValues, ofDecomposable, otherwise, otherwise, then, then, when, when, when, when, when, when, when, when, when, when, whenGuard, whenTrue, whenValues
fromSupplier, iterator, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toList, 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>