Interface BuildableOptionalFunction<T,R>
- All Known Subinterfaces:
BuildableBytesOptionalFunction<T>,BuildableComparableOptionalFunction<T,,R> BuildableComparableSelectionOptionalFunction<SRC,,T, P> BuildableComplexDataOptionalFunction<T,,C> BuildableListOptionalFunction<T>,BuildableMapOptionalFunction<T>,BuildableNumberSelectionOptionalFunction<SRC,,T, P> BuildableNumberSelectionOptionalFunction.BuildableDoubleSelectionOptionalFunction<SRC>,BuildableNumberSelectionOptionalFunction.BuildableIntegerSelectionOptionalFunction<SRC>,BuildableNumberSelectionOptionalFunction.BuildableLongSelectionOptionalFunction<SRC>,BuildableSelectionOptionalFunction<SRC,,T, P> BuildableStringOptionalFunction<T>,BuildableTypedValueSelectionOptionalFunction<SRC>
A function of one argument that generates an
Optional result , and
supports building derived functional types.-
Method Summary
Modifier and TypeMethodDescriptiondefault BuildablePredicate<T>Returns a predicate that tests the value generated bythisis contained within the supplied set.default BuildablePredicate<T>Returns a predicate that tests the value generated bythisis contained within the supplied collection.default BuildablePredicate<T>Returns a predicate that tests the value generated bythisfor equality with the supplied constant.
-
Method Details
-
is
Returns a predicate that tests the value generated bythisfor equality with the supplied constant. Ifthisis a function that generates an emptyOptional, the returned predicate would always evaluate to falseEquality is defined by the behavior of the
Objects.deepEquals(java.lang.Object, java.lang.Object)method.- Parameters:
test- value to test against- Returns:
- an equality predicate
-
in
Returns a predicate that tests the value generated bythisis contained within the supplied set. Ifthisis a function that generates an emptyOptional, the returned predicate would always evaluate to false.- Parameters:
values- to test against- Returns:
- a "contained in" predicate
-
in
Returns a predicate that tests the value generated bythisis contained within the supplied collection. Ifthisis a function that generates an emptyOptional, the returned predicate would always evaluate to false.- Parameters:
collection- to test against- Returns:
- a "contained in" predicate
-