public class NameComparator extends Object implements Comparator<Named>
Named object.
That is, it sorts based on the value of the getName() method.| Modifier and Type | Field and Description |
|---|---|
static Comparator<Named> |
COMPARATOR |
| Constructor and Description |
|---|
NameComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Named o1,
Named o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final Comparator<Named> COMPARATOR
public int compare(Named o1, Named o2)
compare in interface Comparator<Named>Copyright © 2002-2024 Atlassian. All Rights Reserved.