DATATYPE - The data type to be compared. Must somehow have a value that can be
compared as a long value.@NotThreadSafe public abstract class AbstractLongComparator<DATATYPE> extends AbstractComparator<DATATYPE>
| Constructor and Description |
|---|
AbstractLongComparator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
getAsLong(DATATYPE aObject)
Protected method to convert the passed object into a long value.
|
protected int |
mainCompare(DATATYPE aElement1,
DATATYPE aElement2) |
compare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrder, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsprotected abstract long getAsLong(@Nonnull DATATYPE aObject)
aObject - The source objectprotected final int mainCompare(@Nonnull DATATYPE aElement1, @Nonnull DATATYPE aElement2)
mainCompare in class AbstractComparator<DATATYPE>aElement1 - First element to compare. Never null.aElement2 - Second element to compare. Never null.Copyright © 2014–2015 Philip Helger. All rights reserved.