org.eclipse.viatra.query.runtime.rete.util

## Class LexicographicComparator<T>

- java.lang.Object
- - org.eclipse.viatra.query.runtime.rete.util.LexicographicComparator<T>

- All Implemented Interfaces:
    java.util.Comparator<java.lang.Iterable<? extends T>>

      public class LexicographicComparator<T>
      extends java.lang.Object
      implements java.util.Comparator<java.lang.Iterable<? extends T>>

  A comparator that compares two iterables based on the lexicographic sorting induced by a comparator on elements.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LexicographicComparator(java.util.Comparator<T> elementComparator)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(java.lang.Iterable<? extends T> o1, java.lang.Iterable<? extends T> o2)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong`

- - ### Constructor Detail

    - #### LexicographicComparator

          public LexicographicComparator(java.util.Comparator<T> elementComparator)

  - ### Method Detail

    - #### compare

          public int compare(java.lang.Iterable<? extends T> o1,
                             java.lang.Iterable<? extends T> o2)

      Specified by:
        `compare` in interface `java.util.Comparator<java.lang.Iterable<? extends T>>`