Modifier and Type | Field and Description |
---|---|
Optional<L> |
left
The left value.
|
Optional<R> |
right
The right value.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> F.Either<L,R> |
Left(L value)
Constructs a left side of the disjoint union, as opposed to the Right side.
|
static <L,R> F.Either<L,R> |
Right(R value)
Constructs a right side of the disjoint union, as opposed to the Left side.
|
String |
toString() |
public static <L,R> F.Either<L,R> Left(L value)
L
- the left typeR
- the right typevalue
- The value of the left sidepublic static <L,R> F.Either<L,R> Right(R value)
L
- the left typeR
- the right typevalue
- The value of the right side