Modifier and Type | Class and Description |
---|---|
class |
Left<L,R>
|
class |
Right<L,R>
|
Modifier and Type | Method and Description |
---|---|
<T> Either<T,R> |
LeftProjection.map(java.util.function.Function<L,T> function)
|
<T> Either<L,T> |
RightProjection.map(java.util.function.Function<R,T> function)
|
Either<R,L> |
Right.swap()
Returns a
Left containing the value for this instance. |
Either<R,L> |
Either.swap()
|
Either<R,L> |
Left.swap()
Returns a
Right containing the value for this instance. |
Modifier and Type | Method and Description |
---|---|
Option<Either<L,R>> |
LeftProjection.filter(java.util.function.Predicate<L> predicate)
|
Option<Either<L,R>> |
RightProjection.filter(java.util.function.Predicate<R> predicate)
|
Copyright © 2015. All rights reserved.