Interface ComparableFunction<T,R extends Comparable<R>>
- All Known Subinterfaces:
BuildableComparableFunction<T,,R> BuildableComparableOptionalFunction<T,,R> BuildableStringFunction<T>,BuildableStringOptionalFunction<T>
public interface ComparableFunction<T,R extends Comparable<R>>
-
Method Summary
Modifier and TypeMethodDescriptionReturns a predicate that tests the value generated bythisfor equality with the supplied constant.isGreaterThan(R test) Returns a predicate that tests the value generated bythisto see if it is greater than the supplied constant.isGreaterThanOrEqualTo(R test) Returns a predicate that tests the value generated bythisto see if it is greater than or equal to the supplied constant.isLessThan(R test) Returns a predicate that tests the value generated bythisto see if it is less than the supplied constant.isLessThanOrEqualTo(R test) Returns a predicate that tests the value generated bythisto see if it is less than or equal to the supplied constant.
-
Method Details
-
is
Returns a predicate that tests the value generated bythisfor equality with the supplied constant.Equality 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
-
isGreaterThan
Returns a predicate that tests the value generated bythisto see if it is greater than the supplied constant.- Parameters:
test- value to test against- Returns:
- a greater than predicate
-
isLessThan
Returns a predicate that tests the value generated bythisto see if it is less than the supplied constant.- Parameters:
test- value to test against- Returns:
- a less than predicate
-
isGreaterThanOrEqualTo
Returns a predicate that tests the value generated bythisto see if it is greater than or equal to the supplied constant.- Parameters:
test- value to test against- Returns:
- a greater than or equal to predicate
-
isLessThanOrEqualTo
Returns a predicate that tests the value generated bythisto see if it is less than or equal to the supplied constant.- Parameters:
test- value to test against- Returns:
- a less than or equal to predicate
-