Package play.libs
Class F.Either<L,R>
- Object
-
- play.libs.F.Either<L,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
Left
public static <L,R> F.Either<L,R> Left(L value)
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
public static <L,R> F.Either<L,R> Right(R value)
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
-
-