Class ColumnRenderedValueBackupRowComparator<T>

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

    public class ColumnRenderedValueBackupRowComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>
    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.
    • Constructor Detail

      • ColumnRenderedValueBackupRowComparator

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

      • compare

        public int compare​(T t1,
                           T t2)
        Specified by:
        compare in interface java.util.Comparator<T>
      • getColumnValue

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