| 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 value.
|
static <LT,RT> Either<LT,RT> |
Options.Eithers.pure(RT value)
Yields Either.pure() of a value.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
|---|---|
<T> Either<T,E> |
Maybe.either(Provider<T> nothing) |
Either<RT,LT> |
Either.flip() |
<LR,RR> Either<LR,RR> |
Either.fmap(Delegate<LR,LT> withLeft,
Delegate<RR,RT> withRight) |
static <T1,T2> Either<T1,T2> |
Either.left(T1 left) |
Either<RT,LT> |
FlipEither.perform(Either<LT,RT> either) |
Either<LR,RR> |
FmapEither.perform(Either<LT,RT> from) |
Either<L,R> |
MaybeToEither.perform(Maybe<R> maybe) |
Either<LT,RT> |
PureEither.perform(RT value) |
static <T1,T2> Either<T1,T2> |
Either.right(T2 right) |
| Modifier and Type | Method and Description |
|---|---|
Maybe<R> |
MaybeRight.perform(Either<L,R> either) |
Maybe<L> |
MaybeLeft.perform(Either<L,R> either) |
Maybe<RT> |
EitherToMaybe.perform(Either<LT,RT> either) |
Either<RT,LT> |
FlipEither.perform(Either<LT,RT> either) |
Either<LR,RR> |
FmapEither.perform(Either<LT,RT> from) |
Copyright © 2013. All rights reserved.