map

Optional<Tmap<T>(BooleanFunction<? extends T> mapper)

Maps the boolean value of this tri-state if it is TRUE or FALSE.

Return

an optional containing the mapped value; empty if the tri-state is DEFAULT or the value provided by the mapper is {@code null}.

Parameters

mapper

the mapper to use

<T>

the type of object being supplier by the mapper

Sources

jvm source
Link copied to clipboard