@Stability.Internal public class Either<L,R> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
ifPresent(Consumer<L> leftConsumer,
Consumer<R> rightConsumer) |
Optional<L> |
left() |
static <L,R> Either<L,R> |
of(L left,
R right) |
static <L,R> Either<L,R> |
ofLeft(L left) |
static <L,R> Either<L,R> |
ofRight(R right) |
Optional<R> |
right() |
String |
toString() |
Copyright © 2024 Couchbase, Inc.. All rights reserved.