public interface Value<T> extends java.util.function.Supplier<T>, Foldable<T>, Matchable<T>, Convertable<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.CheckValues<T,R>, Matchable.MatchableIterable<TYPE>, Matchable.MatchableTuple1<T1>, Matchable.MatchableTuple2<TYPE,T1 extends TYPE,T2 extends TYPE>, Matchable.MatchableTuple3<TYPE,T1 extends TYPE,T2 extends TYPE,T3 extends TYPE>, Matchable.MatchableTuple4<TYPE,T1 extends TYPE,T2 extends TYPE,T3 extends TYPE,T4 extends TYPE>, Matchable.MatchableTuple5<TYPE,T1 extends TYPE,T2 extends TYPE,T3 extends TYPE,T4 extends TYPE,T5 extends TYPE>, 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>
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() |
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 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 <ST> Ior<ST,T> |
toIor() |
default <PT> Ior<T,PT> |
toIorSecondary() |
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 <ST> Xor<ST,T> |
toXor() |
default <PT> Xor<T,PT> |
toXorSecondary() |
default ListX<?> |
unapply() |
foldRight, foldRight, foldRightMapToType, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce
from, from, from, from, from, from, from, from, from, from, fromCharSequence, fromIterable, fromOptional, fromValue, listOfValues, matches, mayMatch, ofDecomposable, ofIterable, otherwise, otherwise, then, then, when, when, when, when, when, when, when, when, when, when, when, when, when, when, when, whenGuard
fromSupplier, get, iterator, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toList, toOptional, toOptionalAtomicReference, toStream, visit
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()
getMatchable
in interface Matchable<T>
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()