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> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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 Details
-
a
-
-
Constructor Details
-
Left
Left(A a)
-
-
Method Details
-
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. -
either
Description copied from class:Either
The catamorphism for either. Folds over this either breaking into left or right.
-