Package com.swoval.functional
Class Either.Left<L,R>
- java.lang.Object
-
- com.swoval.functional.Either<L,R>
-
- com.swoval.functional.Either.Left<L,R>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.swoval.functional.Either
Either.Left<L,R>, Either.NotLeftException, Either.NotRightException, Either.Right<L,R>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
L
getValue()
Returns the wrapped valueint
hashCode()
boolean
isLeft()
Check whether this is a Left projection.boolean
isRight()
Check whether this is a Right projection.java.lang.String
toString()
-
Methods inherited from class com.swoval.functional.Either
get, getOrElse, left, leftProjection, right, rightProjection
-
-
-
-
Method Detail
-
getValue
public L getValue()
Returns the wrapped value- Returns:
- the wrapped value
-
isLeft
public boolean isLeft()
Description copied from class:Either
Check whether this is a Left projection.
-
isRight
public boolean isRight()
Description copied from class:Either
Check whether this is a Right projection.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-