R
- the row typeC
- the cell value type@FunctionalInterface
public interface ColumnComparator<R,C>
Modifier and Type | Method and Description |
---|---|
int |
compare(R r1,
C c1,
R r2,
C c2)
Compare the cell value
|
static <R,C> ColumnComparator<R,C> |
create(@NonNull java.util.Comparator<C> c)
Create a comparator from a default
Comparator |
int compare(R r1, C c1, R r2, C c2)
r1
- the row of value 1c1
- the cell value 1r2
- the row of value 2c2
- the cell value 2c1
is less than, equal to, or greater than
c2
.static <R,C> ColumnComparator<R,C> create(@NonNull java.util.Comparator<C> c)
Comparator
R
- the row typeC
- the cell typec
- the default comparator