IEither.Left<L,R>, IEither.Right<L,R>| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
<R2> IEither<L,R2> |
flatMap(IFunction<? super R,IEither<L,R2>> mapper) |
L |
getValue() |
int |
hashCode() |
IEither<L,R> |
ifLeft(IConsumer<L> fn) |
IEither<L,R> |
ifRight(IConsumer<R> fn) |
boolean |
isLeft() |
L |
left() |
<R2> IEither<L,R2> |
map(IFunction<? super R,R2> mapper) |
<L2> IEither<L2,R> |
mapLeft(IFunction<? super L,L2> mapper) |
R |
right() |
IList<R> |
toList() |
IOption<R> |
toOption() |
IOption<L> |
toOptionLeft() |
java.lang.String |
toString() |
@NotNull public L getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object@NotNull public IOption<L> toOptionLeft()
toOptionLeft in class IEither<L,R>