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 aComparator
that orders objects using the values mapped by this function.default BuildablePredicate<T>
Returns a predicate that tests the value generated bythis
for equality with the supplied constant.default BuildablePredicate<T>
isGreaterThan
(R test) Returns a predicate that tests the value generated bythis
to see if it is greater than the supplied constant.default BuildablePredicate<T>
isGreaterThanOrEqualTo
(R test) Returns a predicate that tests the value generated bythis
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 bythis
to see if it is less than the supplied constant.default BuildablePredicate<T>
isLessThanOrEqualTo
(R test) Returns a predicate that tests the value generated bythis
to 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:ComparableFunction
Returns a predicate that tests the value generated bythis
to see if it is greater than the supplied constant.- Specified by:
isGreaterThan
in interfaceComparableFunction<T,
R extends Comparable<R>> - Parameters:
test
- value to test against- Returns:
- a greater than predicate
-
isLessThan
Description copied from interface:ComparableFunction
Returns a predicate that tests the value generated bythis
to see if it is less than the supplied constant.- Specified by:
isLessThan
in interfaceComparableFunction<T,
R extends Comparable<R>> - Parameters:
test
- value to test against- Returns:
- a less than predicate
-
isGreaterThanOrEqualTo
Description copied from interface:ComparableFunction
Returns a predicate that tests the value generated bythis
to see if it is greater than or equal to the supplied constant.- Specified by:
isGreaterThanOrEqualTo
in 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:ComparableFunction
Returns a predicate that tests the value generated bythis
to see if it is less than or equal to the supplied constant.- Specified by:
isLessThanOrEqualTo
in interfaceComparableFunction<T,
R extends Comparable<R>> - Parameters:
test
- value to test against- Returns:
- a less than or equal to predicate
-
asComparator
Returns aComparator
that orders objects using the values mapped by this function.- Returns:
- a comparator that orders using the mapped values
-
is
Description copied from interface:BuildableFunction
Returns a predicate that tests the value generated bythis
for equality with the supplied constant.Equality is defined by the behavior of the
Objects.deepEquals(java.lang.Object, java.lang.Object)
method.- Specified by:
is
in interfaceBuildableFunction<T,
R extends Comparable<R>> - Specified by:
is
in interfaceComparableFunction<T,
R extends Comparable<R>> - Parameters:
test
- value to test against- Returns:
- an equality predicate
-