Package org.apache.flink.types
Class Either.Right<L,R>
- java.lang.Object
-
- org.apache.flink.types.Either<L,R>
-
- org.apache.flink.types.Either.Right<L,R>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.types.Either
Either.Left<L,R>, Either.Right<L,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
int
hashCode()
L
left()
Retrieve the Left value of Either.static <L,R>
Either.Right<L,R>of(R right)
Creates a right value ofEither
R
right()
Retrieve the Right value of Either.void
setValue(R value)
Sets the encapsulated value to another valueString
toString()
-
Methods inherited from class org.apache.flink.types.Either
isLeft, isRight, Left, obtainLeft, obtainRight, Right
-
-
-
-
Constructor Detail
-
Right
public Right(R value)
-
-
Method Detail
-
setValue
public void setValue(R value)
Sets the encapsulated value to another value- Parameters:
value
- the new value of the encapsulated value
-
of
public static <L,R> Either.Right<L,R> of(R right)
Creates a right value ofEither
-
-