T
- Subscriber typepublic class SeqSubscriber<T> extends java.lang.Object implements org.reactivestreams.Subscriber<T>, java.util.function.Supplier<T>, ConvertableSequence<T>
SeqSubscriber<Integer> ints = SeqSubscriber.subscriber();
ReactiveSeq.of(1,2,3)
.publish(ints);
ListX list = ints.toListX();
Modifier | Constructor and Description |
---|---|
protected |
SeqSubscriber() |
Modifier and Type | Method and Description |
---|---|
T |
get() |
java.util.Iterator<T> |
iterator() |
void |
onComplete() |
void |
onError(java.lang.Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
java.util.Spliterator<T> |
spliterator() |
ReactiveSeq<T> |
stream() |
static <T> SeqSubscriber<T> |
subscriber() |
static <T> SeqSubscriber<T> |
subscriber(java.lang.Runnable onComplete) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
seq, toDequeX, toFutureStream, toFutureStream, toListX, toMapX, toOptional, toPBagX, toPMapX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toStreamable, toValue
public static <T> SeqSubscriber<T> subscriber(java.lang.Runnable onComplete)
public static <T> SeqSubscriber<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 java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public java.util.Spliterator<T> spliterator()
spliterator
in interface java.lang.Iterable<T>
public ReactiveSeq<T> stream()
stream
in interface ConvertableSequence<T>