public abstract class AbstractCellComparator extends Object implements CellComparator
CellComparator. This class takes care
 of dealing with null inputs; subclasses should implement their comparison
 knowing that both inputs are guaranteed to be non-null.| Constructor and Description | 
|---|
AbstractCellComparator()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compare(Object o1,
       Object o2)
Compares its two arguments for order. 
 | 
protected abstract int | 
nonNullCompare(Object o1,
              Object o2)
Compares its two arguments for order. 
 | 
public int compare(Object o1, Object o2)
CellComparatorNote that nulls are permitted, and should be sorted to the beginning of an ascending sort; i.e. null is considered to be "smaller" than non-null values.
compare in interface CellComparatoro1 - the first object to be comparedo2 - the second object to be comparedComparator.compare(Object, Object)protected abstract int nonNullCompare(Object o1, Object o2)
Note that both objects are guaranteed to be non-null.
o1 - the first object to be comparedo2 - the second object to be comparedClassCastException - if the arguments' types prevent them from
         being compared by this comparatorComparator.compare(Object, Object)