Class ColumnRenderedValueBackupComparator<T>

  • Type Parameters:
    T - the row type
    All Implemented Interfaces:
    java.util.Comparator<java.lang.Object>
    Direct Known Subclasses:
    ThreadedBackupRowComparator

    public class ColumnRenderedValueBackupComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<java.lang.Object>
    A special version of the backup comparator that uses the column's rendered value for the backup sort, rather the just toString, which is what the default parent table model will do.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object c1, java.lang.Object c2)  
      protected java.lang.Object getColumnValue​(T t)  
      • 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

      • ColumnRenderedValueBackupComparator

        public ColumnRenderedValueBackupComparator​(DynamicColumnTableModel<T> model,
                                                   int sortColumn)
    • Method Detail

      • compare

        public int compare​(java.lang.Object c1,
                           java.lang.Object c2)
        Specified by:
        compare in interface java.util.Comparator<T>
      • getColumnValue

        protected java.lang.Object getColumnValue​(T t)