LT - the left typeRT - the right typepublic class Either<LT,RT> extends Object
| Constructor and Description |
|---|
Either(Maybe<LT> left,
Maybe<RT> right) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object rhs) |
Either<RT,LT> |
flip() |
<LR,RR> Either<LR,RR> |
fmap(Delegate<LR,LT> withLeft,
Delegate<RR,RT> withRight) |
<T> T |
fold(Delegate<T,LT> withLeft,
Delegate<T,RT> withRight) |
int |
hashCode() |
static <T1,T2> Either<T1,T2> |
left(T1 left) |
Maybe<RT> |
maybe() |
static <T1,T2> Either<T1,T2> |
right(T2 right) |
String |
toString() |
Copyright © 2016. All rights reserved.