Package org.reactfx.util
Class Success<T>
- java.lang.Object
-
- org.reactfx.util.Right<java.lang.Throwable,T>
-
- org.reactfx.util.Success<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U> Try<U>
flatMap(java.util.function.Function<? super T,Try<U>> f)
T
getOrElse(java.util.function.Supplier<T> fallback)
T
getOrElse(T fallback)
<U> Try<U>
map(java.util.function.Function<? super T,? extends U> f)
Try<T>
orElse(java.util.function.Supplier<Try<T>> fallback)
Try<T>
orElse(Try<T> fallback)
Try<T>
orElseTry(java.util.concurrent.Callable<? extends T> fallback)
Try<T>
recover(java.util.function.Function<java.lang.Throwable,java.util.Optional<T>> f)
java.lang.String
toString()
-
Methods inherited from class org.reactfx.util.Right
asLeft, asRight, equals, exec, flatMap, flatMapLeft, flatMapRight, getLeft, getRight, hashCode, ifLeft, ifRight, isLeft, isRight, map, mapLeft, mapRight, toLeft, toRight, unify
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.reactfx.util.Either
asLeft, asRight, exec, flatMap, flatMapLeft, flatMapRight, getLeft, getRight, ifLeft, ifRight, isLeft, isRight, map, mapLeft, mapRight, toLeft, toRight, unify
-
Methods inherited from interface org.reactfx.util.Try
get, getFailure, ifFailure, ifSuccess, isFailure, isSuccess, toOptional
-
-
-
-
Constructor Detail
-
Success
public Success(T value)
-
-
Method Detail
-
recover
public Try<T> recover(java.util.function.Function<java.lang.Throwable,java.util.Optional<T>> f)
-
-