Package org.reactfx.util
Class Right<L,R>
java.lang.Object
org.reactfx.util.Right<L,R>
- All Implemented Interfaces:
Either<L,
R>
- Direct Known Subclasses:
Success
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLeft()
asRight()
final boolean
void
<L2,
R2> Either <L2, R2> flatMapLeft
(Function<? super L, Either<L2, R>> f) flatMapRight
(Function<? super R, Either<L, R2>> f) getLeft()
getRight()
final int
hashCode()
void
void
boolean
isLeft()
boolean
isRight()
<L2,
R2> Either <L2, R2> toString()
<T> T
-
Field Details
-
value
-
-
Constructor Details
-
Right
-
-
Method Details
-
isLeft
public boolean isLeft() -
isRight
public boolean isRight() -
getLeft
-
getRight
-
toLeft
-
toRight
-
asLeft
-
asRight
-
ifLeft
-
ifRight
-
exec
-
mapLeft
-
mapRight
-
map
-
flatMap
-
flatMapLeft
- Specified by:
flatMapLeft
in interfaceEither<L,
R>
-
flatMapRight
- Specified by:
flatMapRight
in interfaceEither<L,
R>
-
unify
-
hashCode
public final int hashCode() -
equals
-
toString
-