| Modifier and Type | Method and Description |
|---|---|
abstract <U> Try<U> |
Try.flatMap(ThrowingFunction<? super T,? extends Try<U>,? extends Exception> mapper)
Applies a function on two values.
|
<U> Try<U> |
Success.flatMap(ThrowingFunction<? super T,? extends Try<U>,? extends Exception> mapper) |
<U> Try<U> |
Failure.flatMap(ThrowingFunction<? super T,? extends Try<U>,? extends Exception> mapper) |
abstract <U> Try<U> |
Try.map(ThrowingFunction<? super T,? extends U,? extends Exception> mapper)
Applies a function on a value of type Success.
|
<U> Try<U> |
Success.map(ThrowingFunction<? super T,? extends U,? extends Exception> mapper) |
<U> Try<U> |
Failure.map(ThrowingFunction<? super T,? extends U,? extends Exception> mapper) |
static <U,V> Try<U> |
Try.of(ThrowingFunction<V,? extends U,? extends Exception> func,
V v)
Starting point to the Try structure.
|
Copyright © 2014–2016. All rights reserved.