public interface BuildableComparableFunction<T,R extends java.lang.Comparable<R>> extends BuildableFunction<T,R>
Comparable
result, and
supports building derived functional types.Modifier and Type | Method and Description |
---|---|
default java.util.Comparator<T> |
asComparator()
Returns a
Comparator that orders objects using the values mapped by
this function. |
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. |
identity, is
default BuildablePredicate<T> isGreaterThan(R test)
this
to see
if it is greater than the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isLessThan(R test)
this
to see
if it is less than the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isGreaterThanOrEqualTo(R test)
this
to see
if it is greater than or equal to the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isLessThanOrEqualTo(R test)
this
to see
if it is less than or equal to the supplied constant.test
- value to test againstdefault java.util.Comparator<T> asComparator()
Comparator
that orders objects using the values mapped by
this function.