Class LexicographicalOrdering<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<java.lang.Iterable<T>>

    final class LexicographicalOrdering<T>
    extends java.lang.Object
    implements java.util.Comparator<java.lang.Iterable<T>>, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Comparator<? super T> elementOrder  
    • Constructor Summary

      Constructors 
      Constructor Description
      LexicographicalOrdering​(java.util.Comparator<? super T> elementOrder)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Iterable<T> leftIterable, java.lang.Iterable<T> rightIterable)  
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • elementOrder

        final java.util.Comparator<? super T> elementOrder
    • Constructor Detail

      • LexicographicalOrdering

        LexicographicalOrdering​(java.util.Comparator<? super T> elementOrder)
    • Method Detail

      • compare

        public int compare​(java.lang.Iterable<T> leftIterable,
                           java.lang.Iterable<T> rightIterable)
        Specified by:
        compare in interface java.util.Comparator<T>
      • equals

        public boolean equals​(java.lang.Object object)
        Specified by:
        equals in interface java.util.Comparator<T>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object