public class RecordComparator extends Object implements Comparator<Record>
Constructor and Description |
---|
RecordComparator(IEntry entry,
boolean bIsAscSort)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Record r1,
Record r2)
Compare two records
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public RecordComparator(IEntry entry, boolean bIsAscSort)
entry
- the entry to comparebIsAscSort
- true if it is sorted asc, false otherwisepublic int compare(Record r1, Record r2)
compare
in interface Comparator<Record>
r1
- Record 1r2
- Record 2Copyright © 2017 City of Paris. All rights reserved.