public final class DefaultCellComparator extends AbstractCellComparator
Verifies that the objects being compared are the same class. Looks to see if the objects being compared implement comparable and, if so, delegates to that; otherwise, implements a lexicographical compare function (i.e. string sorting). Uses the objects' toString() method and then compares the resulting strings. Note that null values are acceptable and are considered "smaller" than any non-null value.
|Modifier and Type||Field and Description|
An instance of this class.
|Modifier and Type||Method and Description|
Compares its two arguments for order.
public static final CellComparator INSTANCE
Note that both objects are guaranteed to be non-null.
Copyright © 2016. All rights reserved.