-
Methods in de.scravy.bedrock that return Try
| Modifier and Type |
Method |
Description |
static <E> Try<E> |
Try.execute(Callable<E> callable) |
|
static <E> Try<E> |
Try.failure(Exception exception) |
|
Try<E> |
Try.Failure.fallback(E value) |
|
abstract Try<E> |
Try.fallback(E value) |
|
Try<E> |
Try.Success.fallback(E value) |
|
Try<E> |
Try.Failure.fallbackWith(Supplier<E> value) |
|
abstract Try<E> |
Try.fallbackWith(Supplier<E> value) |
|
Try<E> |
Try.Success.fallbackWith(Supplier<E> value) |
|
Try<E> |
Try.Failure.filter(Predicate<? super E> predicate) |
|
abstract Try<E> |
Try.filter(Predicate<? super E> predicate) |
|
Try<E> |
Try.Success.filter(Predicate<? super E> predicate) |
|
<F> Try<F> |
Try.Failure.flatMap(ThrowingFunction<? super E,Try<F>> f) |
|
abstract <F> Try<F> |
Try.flatMap(ThrowingFunction<? super E,Try<F>> f) |
|
<F> Try<F> |
Try.Success.flatMap(ThrowingFunction<? super E,Try<F>> function) |
|
<F> Try<F> |
Try.flatMapOptional(ThrowingFunction<? super E,Optional<F>> function) |
|
static <E> Try<E> |
Try.fromOptional(Optional<E> optional) |
|
<F> Try<F> |
Try.Failure.map(ThrowingFunction<? super E,? extends F> f) |
|
abstract <F> Try<F> |
Try.map(ThrowingFunction<? super E,? extends F> f) |
|
<F> Try<F> |
Try.Success.map(ThrowingFunction<? super E,? extends F> function) |
|
Try<E> |
Try.Failure.otherwise(Try<E> alternative) |
|
abstract Try<E> |
Try.otherwise(Try<E> alternative) |
|
Try<E> |
Try.Success.otherwise(Try<E> alternative) |
|
<F> Try<F> |
Try.Failure.recover(ThrowingFunction<Exception,F> f) |
|
abstract <F> Try<F> |
Try.recover(ThrowingFunction<Exception,F> value) |
|
<F> Try<F> |
Try.Success.recover(ThrowingFunction<Exception,F> exceptionTransformer) |
|
<F> Try<F> |
Try.Failure.recoverWith(ThrowingFunction<Exception,Try<F>> f) |
|
abstract <F> Try<F> |
Try.recoverWith(ThrowingFunction<Exception,Try<F>> value) |
|
<F> Try<F> |
Try.Success.recoverWith(ThrowingFunction<Exception,Try<F>> exceptionTransformer) |
|
static <E> Try<E> |
Try.success(E element) |
|
Try<T> |
Promise.toTry() |
|
<F> Try<F> |
Try.Failure.transform(ThrowingFunction<Exception,F> f,
ThrowingFunction<E,F> g) |
|
<F> Try<F> |
Try.Success.transform(ThrowingFunction<Exception,F> f,
ThrowingFunction<E,F> g) |
|
abstract <F> Try<F> |
Try.transform(ThrowingFunction<Exception,F> f,
ThrowingFunction<E,F> g) |
|
<F> Try<F> |
Try.Failure.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|
<F> Try<F> |
Try.Success.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|
abstract <F> Try<F> |
Try.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|
Method parameters in de.scravy.bedrock with type arguments of type Try
| Modifier and Type |
Method |
Description |
<F> Try<F> |
Try.Failure.flatMap(ThrowingFunction<? super E,Try<F>> f) |
|
abstract <F> Try<F> |
Try.flatMap(ThrowingFunction<? super E,Try<F>> f) |
|
<F> Try<F> |
Try.Success.flatMap(ThrowingFunction<? super E,Try<F>> function) |
|
<F> Try<F> |
Try.Failure.recoverWith(ThrowingFunction<Exception,Try<F>> f) |
|
abstract <F> Try<F> |
Try.recoverWith(ThrowingFunction<Exception,Try<F>> value) |
|
<F> Try<F> |
Try.Success.recoverWith(ThrowingFunction<Exception,Try<F>> exceptionTransformer) |
|
<F> Try<F> |
Try.Failure.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|
<F> Try<F> |
Try.Success.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|
abstract <F> Try<F> |
Try.transformWith(ThrowingFunction<Exception,Try<F>> f,
ThrowingFunction<E,Try<F>> g) |
|