public final class Either<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
explainError() |
static <F> Either<F> |
fail(Exception error) |
static <F> Either<F> |
fail(String error) |
static <F> Either<F> |
fail(String description,
Exception error) |
T |
get() |
boolean |
isSuccess() |
static <S> Either<S> |
success(S value) |
Exception |
whyNot() |
Copyright © 2021. All rights reserved.