public static class F.Either<A,B>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
F.Option<A> |
left
The left value.
|
F.Option<B> |
right
The right value.
|
Modifier and Type | Method and Description |
---|---|
static <A,B> F.Either<A,B> |
Left(A value)
Constructs a left side of the disjoint union, as opposed to the Right side.
|
static <A,B> F.Either<A,B> |
Right(B value)
Constructs a right side of the disjoint union, as opposed to the Left side.
|
java.lang.String |
toString() |
public static <A,B> F.Either<A,B> Left(A value)
value
- The value of the left sidepublic static <A,B> F.Either<A,B> Right(B value)
value
- The value of the right sidepublic java.lang.String toString()
toString
in class java.lang.Object