Class EitherPrism
- java.lang.Object
-
- com.jnape.palatable.lambda.optics.prisms.EitherPrism
-
-
Constructor Summary
Constructors Modifier Constructor Description private
EitherPrism()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <L,R>
Prism.Simple<Either<L,R>,L>_left()
static <L,R>
Prism.Simple<Either<L,R>,R>_right()
-
-
-
Method Detail
-
_left
public static <L,R> Prism.Simple<Either<L,R>,L> _left()
- Type Parameters:
L
- the left typeR
- the right type- Returns:
- the
Prism
-
_right
public static <L,R> Prism.Simple<Either<L,R>,R> _right()
- Type Parameters:
L
- the left typeR
- the right type- Returns:
- the
Prism
-
-