public class IdentifiableIdComparator extends Object implements Comparator<Identifiable<Long>>
Identifiable
by its Identifiable.getId()
Constructor and Description |
---|
IdentifiableIdComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Identifiable<Long> o1,
Identifiable<Long> o2) |
static IdentifiableIdComparator |
getInstance() |
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 static IdentifiableIdComparator getInstance()
public int compare(Identifiable<Long> o1, Identifiable<Long> o2)
compare
in interface Comparator<Identifiable<Long>>
Copyright © 2018. All rights reserved.