Class SortTool.PropertiesComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator
    Enclosing class:
    SortTool

    public static class SortTool.PropertiesComparator
    extends java.lang.Object
    implements java.util.Comparator, java.io.Serializable
    Does all of the comparisons
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesComparator​(java.util.List props)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object lhs, java.lang.Object rhs)  
      • 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
    • Field Detail

      • TYPE_ASCENDING_SHORT

        public static final java.lang.String TYPE_ASCENDING_SHORT
        See Also:
        Constant Field Values
      • TYPE_DESCENDING_SHORT

        public static final java.lang.String TYPE_DESCENDING_SHORT
        See Also:
        Constant Field Values
      • properties

        java.util.List properties
      • sortTypes

        int[] sortTypes
    • Constructor Detail

      • PropertiesComparator

        public PropertiesComparator​(java.util.List props)
    • Method Detail

      • compare

        public int compare​(java.lang.Object lhs,
                           java.lang.Object rhs)
        Specified by:
        compare in interface java.util.Comparator