R
- the row typeC
- the column identifier typepublic static interface FilteredTableModel.ColumnValueProvider<R,C>
Modifier and Type | Field and Description |
---|---|
static Comparator<Comparable<Object>> |
COMPARABLE_COMPARATOR
A Comparator for comparing
Comparable instances. |
static Comparator<?> |
TO_STRING_COMPARATOR
A Comparator for comparing Objects according to their toString() value.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
columnClass(C columnIdentifier)
Returns the class of the column with the given identifier
|
default <T> Comparable<T> |
comparable(R row,
C columnIdentifier)
Returns a Comparable instance for the given row and columnIdentifier.
|
default Comparator<?> |
comparator(C columnIdentifier)
Returns the comparator to use when sorting by the give column,
the comparator receives the column values, but never null.
|
default String |
string(R row,
C columnIdentifier)
Returns a String representation of the value for the given row and columnIdentifier
|
Object |
value(R row,
C columnIdentifier)
Returns a value for the given row and columnIdentifier
|
static final Comparator<Comparable<Object>> COMPARABLE_COMPARATOR
Comparable
instances.static final Comparator<?> TO_STRING_COMPARATOR
Class<?> columnClass(C columnIdentifier)
columnIdentifier
- the column identifierdefault Comparator<?> comparator(C columnIdentifier)
columnIdentifier
- the column identifierObject value(R row, C columnIdentifier)
row
- the object representing a given rowcolumnIdentifier
- the column identifierdefault String string(R row, C columnIdentifier)
row
- the rowcolumnIdentifier
- the column identifierdefault <T> Comparable<T> comparable(R row, C columnIdentifier)
Comparable
instance and performs a cast.T
- the column value typerow
- the object representing a given rowcolumnIdentifier
- the column identifier