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