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 bythis
is contained within the supplied set.default BuildablePredicate<T>
Returns a predicate that tests the value generated bythis
is contained within the supplied collection.default BuildablePredicate<T>
Returns a predicate that tests the value generated bythis
for equality with the supplied constant.
-
Method Details
-
is
Returns a predicate that tests the value generated bythis
for equality with the supplied constant. Ifthis
is 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 bythis
is contained within the supplied set. Ifthis
is 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 bythis
is contained within the supplied collection. Ifthis
is a function that generates an emptyOptional
, the returned predicate would always evaluate to false.- Parameters:
collection
- to test against- Returns:
- a "contained in" predicate
-