public class Either<L,R>
extends Object
-
Method Summary
boolean
int
boolean
boolean
-
Method Details
-
createLeft
public static <L,
R> Either<L,R> createLeft(L left)
-
createRight
public static <L,
R> Either<L,R> createRight(R right)
-
-
isLeft
public boolean isLeft()
-
getLeft
@Nullable
public L getLeft()
-
isRight
public boolean isRight()
-
getRight
@Nullable
public R getRight()
-
-