public class Either<A,B> extends Object
| Constructor and Description |
|---|
Either() |
| Modifier and Type | Method and Description |
|---|---|
A |
asFirst() |
B |
asSecond() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isFirst() |
static <A,B> Either<A,B> |
makeFirst(A first) |
static <A,B> Either<A,B> |
makeSecond(B second) |
String |
toString() |
Copyright © 2017. All rights reserved.