Class Try.Failure<V>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.monad.Try.Failure<V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.streamthoughts.azkarra.api.monad.Try
Try.Failure<V>, Try.Retriable<V>, Try.Success<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <B> Try<B>
flatMap(Function<? super V,Try<B>> mapper)
V
get()
Throwable
getThrowable()
boolean
isFailure()
boolean
isSuccess()
<B> Try<B>
map(Function<? super V,? extends B> mapper)
Try<V>
recover(Function<? super Throwable,Try<V>> fn)
<U> Try<U>
transform(Function<V,Try<U>> s, Function<Throwable,Try<U>> f)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.monad.Try
toOptional
-
-
-
-
Method Detail
-
getThrowable
public Throwable getThrowable()
- Specified by:
getThrowable
in interfaceTry<V>
-
-