Either.Left<L,R>, Either.Right<L,R>
Modifier and Type | Method and 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 of
Either |
R |
right()
Retrieve the Right value of Either.
|
void |
setValue(R value)
Sets the encapsulated value to another value
|
String |
toString() |
isLeft, isRight, Left, obtainLeft, obtainRight, Right
public Right(R value)
public void setValue(R value)
value
- the new value of the encapsulated valuepublic static <L,R> Either.Right<L,R> of(R right)
Either
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.