Class Either.Right<L,R>
java.lang.Object
io.vavr.control.Either.Right<L,R>
- Type Parameters:
L- left component typeR- right component type
- All Implemented Interfaces:
Either<L,R>, Value<R>, Serializable, Iterable<R>
The
Right version of an Either.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Either
Either.Failure, Either.Left<L,R>, Either.LeftProjection<L, R>, Either.Right<L, R>, Either.RightProjection<L, R> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClarifies that values have a proper equals() method implemented.get()Returns the right value if this is aRight; otherwise throws.getLeft()Returns the left value of thisEither.inthashCode()Clarifies that values have a proper hashCode() method implemented.booleanisLeft()Checks whether thisEitheris aEither.Left.booleanisRight()Checks whether thisEitheris aEither.Right.Returns the name of this Value type, which is used by toString().toString()Clarifies that values have a proper toString() method implemented.Methods inherited from interface Either
bimap, filter, filterOrElse, flatMap, fold, getOrElseGet, getOrElseThrow, isAsync, isEmpty, isLazy, isSingleValued, iterator, left, map, mapLeft, mapTo, mapToVoid, orElse, orElse, orElseRun, peek, peekLeft, right, swap, toTry, toValidationMethods inherited from interface Value
collect, collect, contains, corresponds, eq, exists, forAll, forEach, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, getOrNull, out, out, spliterator, stderr, stdout, toArray, toCharSeq, toCompletableFuture, toEither, toEither, toInvalid, toInvalid, toJavaArray, toJavaArray, toJavaArray, toJavaCollection, toJavaList, toJavaList, toJavaMap, toJavaMap, toJavaMap, toJavaOptional, toJavaParallelStream, toJavaSet, toJavaSet, toJavaStream, toLeft, toLeft, toLinkedMap, toLinkedMap, toLinkedSet, toList, toMap, toMap, toOption, toPriorityQueue, toPriorityQueue, toQueue, toRight, toRight, toSet, toSortedMap, toSortedMap, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toStream, toTree, toTree, toTry, toValid, toValid, toValidation, toValidation, toVector
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
value
-
-
Constructor Details
-
Right
-
-
Method Details
-
get
-
getLeft
-
isLeft
-
isRight
-
equals
Description copied from interface:ValueClarifies that values have a proper equals() method implemented. -
hashCode
public int hashCode()Description copied from interface:ValueClarifies that values have a proper hashCode() method implemented.See Object.hashCode().
-
stringPrefix
Description copied from interface:ValueReturns the name of this Value type, which is used by toString().- Specified by:
stringPrefixin interfaceValue<L>- Returns:
- This type name.
-
toString
Description copied from interface:ValueClarifies that values have a proper toString() method implemented.See Object.toString().
-