Package play.libs
Class F.Either<L,R>
java.lang.Object
play.libs.F.Either<L,R>
- Enclosing class:
- F
Represents a value of one of two possible types (a disjoint union)
-
Field Summary
Fields -
Method Summary
-
Field Details
-
left
The left value. -
right
The right value.
-
-
Method Details
-
Left
Constructs a left side of the disjoint union, as opposed to the Right side.- Type Parameters:
L- the left typeR- the right type- Parameters:
value- The value of the left side- Returns:
- A left sided disjoint union
-
Right
Constructs a right side of the disjoint union, as opposed to the Left side.- Type Parameters:
L- the left typeR- the right type- Parameters:
value- The value of the right side- Returns:
- A right sided disjoint union
-
toString
-