public class PriorityServiceComparator extends Object implements Comparator<Object>, Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
static PriorityServiceComparator |
getInstance()
Get the shared instance of the comparator.
|
static int |
getPriority(Class type)
Checks the given type optionally annotated with a @Priority.
|
static int |
getPriority(Object o)
Checks the given instance for a @Priority annotation.
|
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 PriorityServiceComparator getInstance()
public int compare(Object o1, Object o2)
compare in interface Comparator<Object>public static int getPriority(Object o)
1 is returned.o - the instance, not null.public static int getPriority(Class type)
1 is returned.type - the type, not null.Copyright © 2012–2020 JavaMoney. All rights reserved.