public interface BuildableComparableOptionalFunction<T,R extends java.lang.Comparable<R>> extends BuildableOptionalFunction<T,R>
Optional<Comparable>
result, and
supports building derived functional types.Modifier and Type | Method and Description |
---|---|
default java.util.Comparator<T> |
emptiesFirst()
Returns a
Comparator that orders objects using the optional values mapped by
this function, with empty values considered less than non-empty. |
default java.util.Comparator<T> |
emptiesLast()
Returns a
Comparator that orders objects using the optional values mapped by
this function, with empty values considered greater than non-empty. |
default BuildablePredicate<T> |
isGreaterThan(R test)
Returns a predicate that tests the value generated by
this to see
if it is greater than the supplied constant. |
default BuildablePredicate<T> |
isGreaterThanOrEqualTo(R test)
Returns a predicate that tests the value generated by
this to see
if it is greater than or equal to the supplied constant. |
default BuildablePredicate<T> |
isLessThan(R test)
Returns a predicate that tests the value generated by
this to see
if it is less than the supplied constant. |
default BuildablePredicate<T> |
isLessThanOrEqualTo(R test)
Returns a predicate that tests the value generated by
this to see
if it is less than or equal to the supplied constant. |
is
default BuildablePredicate<T> isGreaterThan(R test)
this
to see
if it is greater than the supplied constant. If this
is
a function that generates an empty Optional
, the returned predicate
would always evaluate to false.test
- value to test againstdefault BuildablePredicate<T> isLessThan(R test)
this
to see
if it is less than the supplied constant. If this
is a
function that generates an empty Optional
, the returned predicate
would always evaluate to falsetest
- value to test againstdefault BuildablePredicate<T> isGreaterThanOrEqualTo(R test)
this
to see
if it is greater than or equal to the supplied constant.
If this
is a function that generates an empty Optional
,
the returned predicate would always evaluate to falsetest
- value to test againstdefault BuildablePredicate<T> isLessThanOrEqualTo(R test)
this
to see
if it is less than or equal to the supplied constant.
If this
is a function that generates an empty Optional
,
the returned predicate would always evaluate to falsetest
- value to test againstdefault java.util.Comparator<T> emptiesFirst()
Comparator
that orders objects using the optional values mapped by
this function, with empty values considered less than non-empty.default java.util.Comparator<T> emptiesLast()
Comparator
that orders objects using the optional values mapped by
this function, with empty values considered greater than non-empty.