public static class Eval.Module.FutureAlways<T> extends java.lang.Object implements Eval<T>
Eval.CompletableEval<ORG,T2>, Eval.Comprehensions, Eval.Module
Function0.FunctionalOperations<R>
Deconstruct.Deconstruct1<T1>, Deconstruct.Deconstruct2<T1,T2>, Deconstruct.Deconstruct3<T1,T2,T3>, Deconstruct.Deconstruct4<T1,T2,T3,T4>, Deconstruct.Deconstruct5<T1,T2,T3,T4,T5>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
<R> Eval<R> |
flatMap(java.util.function.Function<? super T,? extends MonadicValue<? extends R>> mapper)
A flattening transformation operation (@see
Optional.flatMap(Function) |
void |
forEach(java.util.function.Consumer<? super T> cons) |
Future<T> |
future(java.util.concurrent.Executor ex)
This convertable converted to a Future asyncrhonously using the supplied Executor
|
ReactiveSeq<T> |
generate() |
T |
get() |
int |
hashCode() |
ReactiveSeq<T> |
iterate(java.util.function.UnaryOperator<T> fn)
Use the value stored in this Value to seed a Stream generated from the provided function
|
<R> Eval<R> |
map(java.util.function.Function<? super T,? extends R> mapper)
Transform this functor using the supplied transformation function
|
ReactiveSeq<T> |
stream() |
void |
subscribe(org.reactivestreams.Subscriber<? super T> sub) |
Future<T> |
toFuture() |
java.lang.String |
toString() |
<T> Eval<T> |
unit(T unit) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accumulate, accumulate, accumulate, always, async, coeval, combineEager, concatMap, defer, emptyUnit, eval, eval, filter, filterNot, fold, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromFuture, fromIterable, fromPublisher, later, mergeMap, narrow, narrowK, notNull, now, ofType, peek, sequence, sequence, sequence, streamUntil, streamUntil, streamWhile, tailRec, toMaybe, toTrampoline, traverse, unapply, widen, zip, zip, zipWith, zipWith
andThen, apply, apply, coflatMapFn, flatMapFn, fnTo, functionOps, lazyLift, lift, lift, liftTry, mapFn, memoize, memoize, memoizeAsync, memoizeAsync, toEval, toType, λ, λ, λv
fold
arity, attemptMap, mapAsync, mapRetry, mapRetry, mapTry, mapTry
asSupplier, collect, fold, generate, isPresent, iterate, iterator, mkString, nonEmptyList, nonEmptyListGet, orElse, orElseGet, print, print, printErr, printOut, toEither, toLazyEither, toLeft, toOption, toOptional, toRight, toTry, toTry, toTry
public void forEach(java.util.function.Consumer<? super T> cons)
public <R> Eval<R> map(java.util.function.Function<? super T,? extends R> mapper)
Transformable
of(1,2,3).map(i->i*2)
//[2,4,6]
map
in interface Transformable<T>
map
in interface MonadicValue<T>
map
in interface Eval<T>
mapper
- Transformation functionpublic <R> Eval<R> flatMap(java.util.function.Function<? super T,? extends MonadicValue<? extends R>> mapper)
MonadicValue
Optional.flatMap(Function)
Eval.now(1).map(i->i+2).flatMap(i->Eval.later(()->i*3);
//Eval[9]
public ReactiveSeq<T> iterate(java.util.function.UnaryOperator<T> fn)
Function0
public ReactiveSeq<T> generate()
public Future<T> future(java.util.concurrent.Executor ex)
public final void subscribe(org.reactivestreams.Subscriber<? super T> sub)
public T get()
public ReactiveSeq<T> stream()
public <T> Eval<T> unit(T unit)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object