Class ListComparator<T extends java.lang.Comparable>

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

    public final class ListComparator<T extends java.lang.Comparable>
    extends java.lang.Object
    implements java.util.Comparator<java.util.List<T>>, java.io.Serializable

    Implementatino of a Comparator for List's of Comparable objects

    Since:
    2.1
    Version:
    2.1
    Author:
    Michael Grove
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ListComparator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.util.List<T> o1, java.util.List<T> o2)
      static <T extends java.lang.Comparable>
      ListComparator<T>
      create()  
      • 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

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ListComparator

        public ListComparator()
    • Method Detail

      • create

        public static <T extends java.lang.Comparable> ListComparator<T> create()
      • compare

        public int compare​(java.util.List<T> o1,
                           java.util.List<T> o2)
        Specified by:
        compare in interface java.util.Comparator<T extends java.lang.Comparable>