Modifier | Constructor and Description |
---|---|
protected |
Either3(T1 left,
Either<T2,T3> right) |
Modifier and Type | Method and Description |
---|---|
static <T1,T2,T3> Either3<T1,T2,T3> |
forFirst(T1 first) |
static <T1,T2,T3> Either3<T1,T2,T3> |
forLeft3(T1 first) |
static <T1,T2,T3> Either3<T1,T2,T3> |
forRight3(Either<T2,T3> right) |
static <T1,T2,T3> Either3<T1,T2,T3> |
forSecond(T2 second) |
static <T1,T2,T3> Either3<T1,T2,T3> |
forThird(T3 third) |
java.lang.Object |
get() |
T1 |
getFirst() |
T2 |
getSecond() |
T3 |
getThird() |
boolean |
isFirst() |
boolean |
isSecond() |
boolean |
isThird() |
java.lang.String |
toString() |
collectDisjoinTypes, collectDisjoinTypes, collectDisjoinTypes, equals, forLeft, forRight, getAllDisjoinTypes, getLeft, getLeftDisjointType, getRight, getRightDisjointType, hashCode, isEither, isEither, isEither, isLeft, isRight
public static <T1,T2,T3> Either3<T1,T2,T3> forFirst(T1 first)
public static <T1,T2,T3> Either3<T1,T2,T3> forSecond(T2 second)
public static <T1,T2,T3> Either3<T1,T2,T3> forThird(T3 third)
public static <T1,T2,T3> Either3<T1,T2,T3> forLeft3(T1 first)
public T1 getFirst()
public T2 getSecond()
public T3 getThird()
public boolean isFirst()
public boolean isSecond()
public boolean isThird()