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>
Utility that holds L value only.
|
static class |
Either.EitherRight<L,R>
Utility that holds R value only.
|
| 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 © 2024 The Apache Software Foundation. All rights reserved.