public interface BuildableOptionalFunction<T,R>
extends java.util.function.Function<T,java.util.Optional<R>>
Optional
result , and
supports building derived functional types.Modifier and Type | Method and Description |
---|---|
default BuildablePredicate<T> |
is(R test)
Returns a predicate that tests the value generated by
this for
equality with the supplied constant. |
default BuildablePredicate<T> is(R test)
this
for
equality with the supplied constant. If this
is a function
that generates an empty Optional
, the returned predicate would always
evaluate to falsetest
- value to test against