L - type of the "left" potential elementR - type of the "right" potential elementpublic abstract class Either<L,R> extends Object
LR| Modifier and Type | Class and Description |
|---|---|
static class |
Either.EitherLeft<L,R> |
static class |
Either.EitherRight<L,R> |
| Constructor and Description |
|---|
Either() |
| Modifier and Type | Method and Description |
|---|---|
L |
asLeft() |
R |
asRight() |
protected abstract Object |
getValue() |
boolean |
isLeft() |
boolean |
isRight() |
static <L,R> Either<L,R> |
left(L left) |
static <L,R> Either<L,R> |
right(R right) |
Copyright © 2022 The Apache Software Foundation. All rights reserved.