Package fj.data
Class Either.Left<A,B>
- java.lang.Object
-
- fj.data.Either<A,B>
-
- fj.data.Either.Left<A,B>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fj.data.Either
Either.LeftProjection<A,B>, Either.RightProjection<A,B>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> X
either(F<A,X> left, F<B,X> right)
The catamorphism for either.boolean
isLeft()
Returnstrue
if this either is a left,false
otherwise.boolean
isRight()
Returnstrue
if this either is a right,false
otherwise.-
Methods inherited from class fj.data.Either
bimap, either_, equals, hashCode, iif, joinLeft, joinRight, left, left, left_, leftMap, leftMap_, lefts, reduce, right, right, right_, rightMap, rightMap_, rights, sequenceLeft, sequenceRight, swap, toString, traverseIOLeft, traverseIORight, traverseListLeft, traverseListRight, traverseOptionLeft, traverseOptionRight, traverseStreamLeft, traverseStreamRight
-
-
-
-
Field Detail
-
a
private final A a
-
-
Constructor Detail
-
Left
Left(A a)
-
-
Method Detail
-
isLeft
public boolean isLeft()
Description copied from class:Either
Returnstrue
if this either is a left,false
otherwise.
-
isRight
public boolean isRight()
Description copied from class:Either
Returnstrue
if this either is a right,false
otherwise.
-
-