public static class Eval.Module.Always<T> extends java.lang.Object implements Eval<T>
Eval.µ, Eval.Instances, Eval.Module
Value.ValueImpl<T>
Convertable.SupplierToConvertable<T>
Fn0.FunctionalOperations<R>, Fn0.SupplierKind<R>
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) |
T |
get()
Apply this function to the arguments.
|
int |
hashCode() |
<R> Eval<R> |
map(java.util.function.Function<? super T,? extends R> mapper)
Transform this functor using the supplied transformation function
|
Eval<T> |
toEvalAlways()
Return the value of this object, evaluated always.
|
java.lang.String |
toString() |
<T> Eval<T> |
unit(T unit) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accumulate, accumulate, accumulate, always, anyM, cast, coflatMap, combine, combineEager, filter, filterNot, flatMapI, flatMapP, flatMapS, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromIterable, fromPublisher, later, narrow, narrowK, nest, notNull, now, ofType, peek, retry, retry, sequence, sequence, steps, toMaybe, trampoline, visit, zip, zip, zip, zip3, zip3, zip4, zip4, zipP, zipP, zipS, zipS, zipWith, zipWithP, zipWithS
apply, generate, iterate, iterator, mkString, newSubscriber, of, stream, subscribe, test, toEvalLater, toEvalNow, toIor, toTry, toTry, toTry, toXor, toXor
endsWith, endsWithIterable, findAny, findFirst, firstValue, foldLeft, foldLeft, foldLeft, foldLeft, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, join, join, join, mapReduce, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, xMatch
futureStream, getStreamable, isEmpty, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStream
collect, fromSupplier, isPresent, orElse, orElseGet, orElseThrow, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFuture, toFutureWAsync, toFutureWAsync, toOptional, toStream
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 MonadicValue<T>
map
in interface Transformable<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 T get()
org.jooq.lambda.function.Function0
public <T> Eval<T> unit(T unit)
public Eval<T> toEvalAlways()
Value
toEvalAlways
in interface Value<T>
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