public class CellAddressComparator extends Object implements Comparator, Serializable
Comparator that sorts cell records by address.
As XLSRecord currently uses default equality the
imposed ordering is inconsistent with equals.| Constructor and Description |
|---|
CellAddressComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2)
Compares its two arguments for order.
|
boolean |
equals(Object obj)
Indicates whether another
Comparator imposes the same
ordering as this one. |
int |
hashCode()
Returns a hash code value for this object.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Object o1, Object o2)
XLSRecords that represent cells
(isValueForCell() must return true).compare in interface Comparatoro1 - the first cell record to be comparedo2 - the second cell record to be comparedClassCastException - if either argument is not a cell recordpublic boolean equals(Object obj)
Comparator imposes the same
ordering as this one. As all instances of this class impose the same
order, this method returns true if and only if the given object is
an instance of this class.equals in interface Comparatorequals in class ObjectCopyright © 2002–2019 Starter Inc.. All rights reserved.