Interface CombinedComparator<ENTITY>

Type Parameters:
ENTITY - the entity type
All Superinterfaces:
Comparator<ENTITY>

public interface CombinedComparator<ENTITY> extends Comparator<ENTITY>
A combined Comparator that compares a number of FieldComparators in sequence.
Since:
3.0.11
Author:
Emil Forslund
  • Method Details

    • reversed

      Specified by:
      reversed in interface Comparator<ENTITY>
    • stream

      Stream<FieldComparator<? super ENTITY>> stream()
      Returns the comparators ordered so that the first comparator is the most significant, and if that evaluates to 0, continue on to the next one.
      Returns:
      list of comparators
    • size

      int size()
      The number of comparators in the stream().
      Returns:
      the number of comparators