Class SorterTool.HumanModelComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<java.lang.Object>
    Enclosing class:
    SorterTool

    private static class SorterTool.HumanModelComparator
    extends java.lang.Object
    Sort Collection in ascending
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object o1, java.lang.Object 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

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

      • HumanModelComparator

        public HumanModelComparator​(SorterTool sorterTool)
        Create ascending sort.
        Parameters:
        sorterTool - the sort tool
    • Method Detail

      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.Object>
        See Also:
        Comparator.compare(java.lang.Object, java.lang.Object)