public class Either<L,R> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Either(Optional<L> left,
Optional<R> right) |
Modifier and Type | Method and Description |
---|---|
<X> X |
cata(Function<L,X> left,
Function<R,X> right) |
R |
getOrElse(R default_value) |
boolean |
isLeft() |
boolean |
isRight() |
static <L,R> Either<L,R> |
ofLeft(L value) |
static <L,R> Either<L,R> |
ofRight(R value) |
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.