Package docking.widgets.table.sort

# Class ColumnRenderedValueBackupComparator<T>

java.lang.Object
docking.widgets.table.sort.ColumnRenderedValueBackupComparator<T>

Type Parameters:
  `T` - the row type

All Implemented Interfaces:
  `Comparator<Object>`

Direct Known Subclasses:
  `ThreadedBackupRowComparator`

public class ColumnRenderedValueBackupComparator<T> extends Object implements Comparator<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.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected DynamicColumnTableModel<T>`
  `model`
  `protected int`
  `sortColumn`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ColumnRenderedValueBackupComparator(DynamicColumnTableModel<T> model, int sortColumn)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compare(Object c1, Object c2)`
  `protected 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`

- ## Field Details

  - ### sortColumn

    protected int sortColumn

  - ### model

    protected DynamicColumnTableModel<T> model

- ## Constructor Details

  - ### ColumnRenderedValueBackupComparator

    public ColumnRenderedValueBackupComparator(DynamicColumnTableModel<T> model, int sortColumn)

- ## Method Details

  - ### compare

    public int compare(Object c1, Object c2)
    Specified by:
      `compare` in interface `Comparator<T>`

  - ### getColumnValue

    protected Object getColumnValue(T t)