where abstract method

Optional<T> where(
  1. Predicate1<T> function
)

Returns this Optional if the provided predicate function evaluates to true, otherwise returns an absent Optional.

Implementation

Optional<T> where(Predicate1<T> function);