| Package | Description |
|---|---|
| net.emaze.dysfunctional | |
| net.emaze.dysfunctional.options |
| Modifier and Type | Method and Description |
|---|---|
static <LT,RT> Either<LT,RT> |
Options.Eithers.pure(Class<LT> leftClass,
RT value)
Yields Either.pure() of a get.
|
static <LT,RT> Either<LT,RT> |
Options.Eithers.pure(RT value)
Yields Either.pure() of a get.
|
| Modifier and Type | Method and Description |
|---|---|
static <LT,RT,LR,RR> |
Options.Eithers.lift(Function<LT,LR> left,
Function<RT,RR> right)
Lifts functions working on the components of an
Either<LT, RT> into a single function working on either
monadic values.
|
static <LT,RT,LR,RR> |
Options.Eithers.lift(Function<LT,LR> left,
Function<RT,RR> right)
Lifts functions working on the components of an
Either<LT, RT> into a single function working on either
monadic values.
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(Iterable<RT> values)
Creates an iterator transforming values from the source iterable into
pure() Either
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(Iterator<RT> values)
Creates an iterator transforming values from the source iterator into
pure() Either
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(RT... values)
Creates an iterator transforming values from the source array into
pure() Either
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(RT value)
Creates a singleton iterator yielding pure() Either
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(RT first,
RT second)
Creates an iterator yielding pure() Either
|
static <LT,RT> Iterator<Either<LT,RT>> |
Options.Eithers.pures(RT first,
RT second,
RT third)
Creates an iterator yielding pure() Either
|
| Modifier and Type | Method and Description |
|---|---|
static <LT,RT> Iterator<LT> |
Options.Eithers.lefts(Iterable<Either<LT,RT>> eithers)
Creates an iterator yielding only left wrapped values from an
iterable of Either.
|
static <LT,RT> Iterator<LT> |
Options.Eithers.lefts(Iterator<Either<LT,RT>> eithers)
Creates an iterator yielding only left wrapped values from an
iterator of Either.
|
static <LT,RT> Iterator<RT> |
Options.Eithers.rights(Iterable<Either<LT,RT>> eithers)
Creates an iterator yielding only right wrapped values from an
iterable of Either.
|
static <LT,RT> Iterator<RT> |
Options.Eithers.rights(Iterator<Either<LT,RT>> eithers)
Creates an iterator yielding only right wrapped values from an
iterator of Either.
|
| Modifier and Type | Method and Description |
|---|---|
Either<L,R> |
OptionalToEither.apply(Optional<R> right) |
<T> Either<T,E> |
Maybe.either(Supplier<T> nothing) |
Either<RT,LT> |
Either.flip() |
static <T1,T2> Either<T1,T2> |
Either.left(T1 left) |
<LR,RR> Either<LR,RR> |
Either.map(Function<LT,LR> withLeft,
Function<RT,RR> withRight) |
static <T1,T2> Either<T1,T2> |
Either.right(T2 right) |
Copyright © 2017. All rights reserved.