| Package | Description |
|---|---|
| software.amazon.awssdk.utils |
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Either<L,R> |
Either.left(L value)
Create a new Either with the left type.
|
<T> Either<T,R> |
Either.mapLeft(Function<? super L,? extends T> lFunc)
Map the left most value and return a new Either reflecting the new types.
|
<T> Either<L,T> |
Either.mapRight(Function<? super R,? extends T> rFunc)
Map the right most value and return a new Either reflecting the new types.
|
static <L,R> Either<L,R> |
Either.right(R value)
Create a new Either with the right type.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Optional<Either<L,R>> |
Either.fromNullable(L left,
R right)
Create a new
Optional<Either> from two possibly null values. |
Copyright © 2022. All rights reserved.