Modifier and Type | Method and Description |
---|---|
Try<T1> |
yield()
A shortcut for
yield(Function.identity()) . |
<R> Try<R> |
yield(Function<? super T1,? extends R> f)
Yields a result for elements of the cross product of the underlying Try.
|
public <R> Try<R> yield(Function<? super T1,? extends R> f)
R
- type of the resulting Try
elementsf
- a function that maps an element of the cross product to a resultTry
of mapped resultsCopyright © 2019. All Rights Reserved.