Return the right value if this JSEither represents a right value.
Return the right value if this JSEither represents a right value. Otherwise throw a com.swoval.functional.Either.NotRightException.
the right value.
Return the right value or a default if this either represents a left value.
Return the right value or a default if this either represents a left value.
the right value or a default if this either represents a left value.
True if the JSEither represents the left value type
True if the JSEither represents the right value type
Projects this either to JSLeftProjection.
Projects this either to JSLeftProjection. This is potentially unsafe to call without checking JSEither.isLeft or JSEither.isRight.
the JSLeftProjection
Represents a value that can take one of two types. It is right biased, so that the
get
andgetOrElse
correspond to the right value type.The type of the "left" value
The type of the "right" value