Result.Error<T>, Result.Success<T>| Modifier and Type | Method and Description |
|---|---|
T |
get() |
CodecException |
getError() |
T |
getOrThrow(java.util.function.Function<java.lang.Throwable,? extends java.lang.Throwable> exceptionSupplier) |
boolean |
isError() |
boolean |
isSuccessful() |
<N> Result<N> |
map(java.util.function.Function<T,N> mapper) |
<N> Result<N> |
mapError() |
<N> Result<N> |
mapResult(java.util.function.Function<T,Result<N>> mapper) |
T |
orElse(T other) |
T |
orElseThrow(java.util.function.Function<java.lang.Throwable,? extends java.lang.Throwable> exceptionSupplier) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, error, error, hashCode, mergeErrors, success, unexpected, unexpectedpublic CodecException getError()
public T getOrThrow(java.util.function.Function<java.lang.Throwable,? extends java.lang.Throwable> exceptionSupplier)
getOrThrow in interface Result<T>public T orElseThrow(java.util.function.Function<java.lang.Throwable,? extends java.lang.Throwable> exceptionSupplier)
orElseThrow in interface Result<T>public boolean isSuccessful()
isSuccessful in interface Result<T>