public static class Eval.Module.Always<T> extends java.lang.Object implements Eval<T>
Eval.ModuleApplicativable.Applicatives, Applicativable.SemigroupApplyer<T>Value.ValueImpl<T>Convertable.SupplierToConvertable<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
<R> Eval<R> |
flatMap(java.util.function.Function<? super T,? extends Eval<? extends R>> mapper) |
T |
get() |
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() |
java.lang.String |
toString() |
<T> Eval<T> |
unit(T unit) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaccumulate, accumulate, accumulate, always, asyncAlways, asyncAlways, asyncLater, asyncLater, asyncNow, asyncNow, cast, coflatMap, combine, filter, filterNot, fromIterable, later, narrow, nest, notNull, now, ofType, peek, sequence, steps, trampolineanyM, isPresentap, ap, ap1, ap2, ap3, ap4, ap5fold, fold, generate, iterate, mapReduce, mkString, newSubscriber, of, stream, subscribe, test, toDequeX, toEvalLater, toEvalNow, toFeatureToggle, toFutureStream, toFutureStream, toIor, toLazyImmutable, toListX, toMaybe, toMutable, toPBagX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toTry, toTry, toTry, toXor, toXor, unapply, visitendsWith, endsWithIterable, findAny, findFirst, firstValue, foldable, foldRight, foldRight, foldRight, foldRightMapToType, get, groupBy, headAndTail, join, join, join, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, visit, visit, xMatchfromSupplier, iterator, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toList, toOptional, toOptionalAtomicReference, toStreamiterator, toOptional, visitmatchespublic <R> Eval<R> map(java.util.function.Function<? super T,? extends R> mapper)
Functor
of(1,2,3).map(i->i*2)
//[2,4,6]
public <R> Eval<R> flatMap(java.util.function.Function<? super T,? extends Eval<? extends R>> mapper)
public T get()
public <T> Eval<T> unit(T unit)
public Eval<T> toEvalAlways()
toEvalAlways in interface Value<T>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object