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