public interface Value<T> extends java.util.function.Supplier<T>, Foldable<T>, Matchable<T>, Convertable<T>, org.reactivestreams.Publisher<T>, java.util.function.Predicate<T>
Modifier and Type | Interface and Description |
---|---|
static class |
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 |
---|---|
default <R> R |
convertTo(java.util.function.Function<? super Maybe<? super T>,? extends R> convertTo) |
default <R> FutureW<R> |
convertToAsync(java.util.function.Function<? super java.util.concurrent.CompletableFuture<? super T>,? extends java.util.concurrent.CompletableFuture<R>> convertTo) |
default T |
fold(Monoid<T> monoid) |
default T |
fold(T identity,
java.util.function.BinaryOperator<T> accumulator) |
default ReactiveSeq<T> |
generate() |
default T |
getMatchable() |
default ReactiveSeq<T> |
iterate(java.util.function.UnaryOperator<T> fn) |
default <E> E |
mapReduce(Reducer<E> monoid)
Attempt to map this Sequence to the same type as the supplied Monoid
(Reducer) Then use Monoid to reduce values
|
default java.lang.String |
mkString() |
default ValueSubscriber<T> |
newSubscriber() |
static <T> Value<T> |
of(java.util.function.Supplier<T> supplier)
Create a new matchable that will match on the fields of the provided Object
|
default ReactiveSeq<T> |
stream() |
default void |
subscribe(org.reactivestreams.Subscriber<? super T> sub) |
default boolean |
test(T t) |
default DequeX<T> |
toDequeX() |
default Eval<T> |
toEvalAlways() |
default Eval<T> |
toEvalLater() |
default Eval<T> |
toEvalNow() |
default LazyFutureStream<T> |
toFutureStream() |
default LazyFutureStream<T> |
toFutureStream(LazyReact reactor) |
default Ior<?,T> |
toIor() |
default LazyImmutable<T> |
toLazyImmutable() |
default ListX<T> |
toListX() |
default Maybe<T> |
toMaybe() |
default Mutable<T> |
toMutable() |
default PBagX<T> |
toPBagX() |
default POrderedSetX<T> |
toPOrderedSetX() |
default PQueueX<T> |
toPQueueX() |
default PSetX<T> |
toPSetX() |
default PStackX<T> |
toPStackX() |
default PVectorX<T> |
toPVectorX() |
default QueueX<T> |
toQueueX() |
default SetX<T> |
toSetX() |
default SimpleReactStream<T> |
toSimpleReact() |
default SimpleReactStream<T> |
toSimpleReact(SimpleReact reactor) |
default SortedSetX<T> |
toSortedSetX() |
default Try<T,java.util.NoSuchElementException> |
toTry() |
default <X extends java.lang.Throwable> |
toTry(java.lang.Class<X>... classes) |
default Xor<?,T> |
toXor() |
default ListX<?> |
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, get, iterator, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toList, toOptional, toOptionalAtomicReference, toStream, visit
default ValueSubscriber<T> newSubscriber()
default void subscribe(org.reactivestreams.Subscriber<? super T> sub)
subscribe
in interface org.reactivestreams.Publisher<T>
static <T> Value<T> of(java.util.function.Supplier<T> supplier)
Matchable
default <R> R convertTo(java.util.function.Function<? super Maybe<? super T>,? extends R> convertTo)
default <R> FutureW<R> convertToAsync(java.util.function.Function<? super java.util.concurrent.CompletableFuture<? super T>,? extends java.util.concurrent.CompletableFuture<R>> convertTo)
default ReactiveSeq<T> stream()
default T getMatchable()
default ListX<?> unapply()
default ReactiveSeq<T> iterate(java.util.function.UnaryOperator<T> fn)
default ReactiveSeq<T> generate()
default <E> E mapReduce(Reducer<E> monoid)
Foldable
ReactiveSeq.of("hello","2","world","4").mapReduce(Reducers.toCountInt());
//4
default LazyImmutable<T> toLazyImmutable()
default SortedSetX<T> toSortedSetX()
default POrderedSetX<T> toPOrderedSetX()
default java.lang.String mkString()
default LazyFutureStream<T> toFutureStream(LazyReact reactor)
default LazyFutureStream<T> toFutureStream()
default SimpleReactStream<T> toSimpleReact(SimpleReact reactor)
default SimpleReactStream<T> toSimpleReact()