Interface BuildableComparableFunction<T,R extends Comparable<R>>
- All Superinterfaces:
BuildableFunction<T,,R> ComparableFunction<T,,R> Function<T,R>
- All Known Subinterfaces:
BuildableStringFunction<T>
public interface BuildableComparableFunction<T,R extends Comparable<R>>
extends BuildableFunction<T,R>, ComparableFunction<T,R>
A function of one argument that generates a
Comparable result, and
supports building derived functional types.-
Method Summary
Modifier and TypeMethodDescriptiondefault Comparator<T>Returns aComparatorthat orders objects using the values mapped by this function.default BuildablePredicate<T>Returns a predicate that tests the value generated bythisfor equality with the supplied constant.default BuildablePredicate<T>isGreaterThan(R test) Returns a predicate that tests the value generated bythisto see if it is greater than the supplied constant.default BuildablePredicate<T>isGreaterThanOrEqualTo(R test) Returns a predicate that tests the value generated bythisto 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 bythisto see if it is less than the supplied constant.default BuildablePredicate<T>isLessThanOrEqualTo(R test) Returns a predicate that tests the value generated bythisto see if it is less than or equal to the supplied constant.Methods inherited from interface com.terracottatech.store.function.BuildableFunction
in, in
-
Method Details
-
isGreaterThan
Description copied from interface:ComparableFunctionReturns a predicate that tests the value generated bythisto see if it is greater than the supplied constant.- Specified by:
isGreaterThanin interfaceComparableFunction<T,R extends Comparable<R>> - Parameters:
test- value to test against- Returns:
- a greater than predicate
-
isLessThan
Description copied from interface:ComparableFunctionReturns a predicate that tests the value generated bythisto see if it is less than the supplied constant.- Specified by:
isLessThanin interfaceComparableFunction<T,R extends Comparable<R>> - Parameters:
test- value to test against- Returns:
- a less than predicate
-
isGreaterThanOrEqualTo
Description copied from interface:ComparableFunctionReturns a predicate that tests the value generated bythisto see if it is greater than or equal to the supplied constant.- Specified by:
isGreaterThanOrEqualToin interfaceComparableFunction<T,R extends Comparable<R>> - Parameters:
test- value to test against- Returns:
- a greater than or equal to predicate
-
isLessThanOrEqualTo
Description copied from interface:ComparableFunctionReturns a predicate that tests the value generated bythisto see if it is less than or equal to the supplied constant.- Specified by:
isLessThanOrEqualToin interfaceComparableFunction<T,R extends Comparable<R>> - Parameters:
test- value to test against- Returns:
- a less than or equal to predicate
-
asComparator
Returns aComparatorthat orders objects using the values mapped by this function.- Returns:
- a comparator that orders using the mapped values
-
is
Description copied from interface:BuildableFunctionReturns 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.- Specified by:
isin interfaceBuildableFunction<T,R extends Comparable<R>> - Specified by:
isin interfaceComparableFunction<T,R extends Comparable<R>> - Parameters:
test- value to test against- Returns:
- an equality predicate
-