| Modifier and Type | Method and Description |
|---|---|
<R> Try<R> |
of(CheckedFunction1<? super T1,? extends R> f)
Wraps the result of a computation that may fail in a
Try. |
public <R> Try<R> of(CheckedFunction1<? super T1,? extends R> f)
Try.R - Result type of the computation.f - A computation that takes one AutoClosable resource.Try instance.