Module jpastreamer.field
Interface CombinedComparator<ENTITY>
- Type Parameters:
ENTITY- the entity type
- All Superinterfaces:
Comparator<ENTITY>
A combined
Comparator that compares a number of
FieldComparators in sequence.- Since:
- 3.0.11
- Author:
- Emil Forslund
-
Method Summary
Methods inherited from interface java.util.Comparator
compare, equals, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
reversed
CombinedComparator<ENTITY> reversed()- Specified by:
reversedin interfaceComparator<ENTITY>
-
stream
Stream<FieldComparator<? super ENTITY>> stream()Returns the comparators ordered so that the first comparator is the most significant, and if that evaluates to0, continue on to the next one.- Returns:
- list of comparators
-
size
int size()The number of comparators in thestream().- Returns:
- the number of comparators
-