Class ColumnComparator

  • All Implemented Interfaces:
    java.util.Comparator

    public class ColumnComparator
    extends java.lang.Object
    implements java.util.Comparator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean ascending  
      protected int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      ColumnComparator​(int index, boolean ascending)  
    • Method Summary

      Modifier and Type Method Description
      int compare​(java.lang.Object one, java.lang.Object two)  
      • 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

      • index

        protected int index
      • ascending

        protected boolean ascending
    • Constructor Detail

      • ColumnComparator

        public ColumnComparator​(int index,
                                boolean ascending)
    • Method Detail

      • compare

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