DATATYPE - The data type to be compared. Must somehow have a value that can be
compared as a long value.public abstract class AbstractIntegerComparator<DATATYPE> extends AbstractComparator<DATATYPE>
| Constructor and Description |
|---|
AbstractIntegerComparator() |
AbstractIntegerComparator(Comparator<? super DATATYPE> aNestedComparator)
Comparator with default sort order and a nested comparator.
|
AbstractIntegerComparator(ESortOrder eSortOrder)
Compare with a special order.
|
AbstractIntegerComparator(ESortOrder eSortOrder,
Comparator<? super DATATYPE> aNestedComparator)
Comparator with sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
asLong(DATATYPE aObject) |
protected int |
mainCompare(DATATYPE aElement1,
DATATYPE aElement2) |
compare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic AbstractIntegerComparator()
public AbstractIntegerComparator(@Nonnull ESortOrder eSortOrder)
eSortOrder - The sort order to use. May not be null.public AbstractIntegerComparator(@Nullable Comparator<? super DATATYPE> aNestedComparator)
aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public AbstractIntegerComparator(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super DATATYPE> aNestedComparator)
eSortOrder - The sort order to use. May not be null.aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.protected abstract long asLong(DATATYPE aObject)
protected final int mainCompare(DATATYPE aElement1, DATATYPE aElement2)
mainCompare in class AbstractComparator<DATATYPE>aElement1 - First element to compare. No information on the null
status.aElement2 - Second element to compare. No information on the null
status.Copyright © 2006–2015 phloc systems. All rights reserved.