public final class ComparatorChangeLogEntryDate extends AbstractComparator<ChangeLogEntry>
| Constructor and Description |
|---|
ComparatorChangeLogEntryDate()
Comparator with default sort order and no nested comparator.
|
ComparatorChangeLogEntryDate(Comparator<? super ChangeLogEntry> aNestedComparator)
Comparator with default sort order and a nested comparator.
|
ComparatorChangeLogEntryDate(ESortOrder eSortOrder)
Constructor with sort order.
|
ComparatorChangeLogEntryDate(ESortOrder eSortOrder,
Comparator<? super ChangeLogEntry> aNestedComparator)
Comparator with sort order and a nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
mainCompare(ChangeLogEntry aEntry1,
ChangeLogEntry aEntry2) |
compare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ComparatorChangeLogEntryDate()
public ComparatorChangeLogEntryDate(@Nonnull ESortOrder eSortOrder)
eSortOrder - The sort order to use. May not be null.public ComparatorChangeLogEntryDate(@Nullable Comparator<? super ChangeLogEntry> aNestedComparator)
aNestedComparator - The nested comparator to be invoked, when the main comparison
resulted in 0.public ComparatorChangeLogEntryDate(@Nonnull ESortOrder eSortOrder, @Nullable Comparator<? super ChangeLogEntry> 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 int mainCompare(@Nonnull ChangeLogEntry aEntry1, @Nonnull ChangeLogEntry aEntry2)
mainCompare in class AbstractComparator<ChangeLogEntry>aEntry1 - First element to compare. No information on the null
status.aEntry2 - Second element to compare. No information on the null
status.Copyright © 2006–2014 phloc systems. All rights reserved.