T
- The type of object to comparepublic class PriorityAnnotationComparator<T> extends Object implements Comparator<T>
@Priority
annotation.Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
static <T> PriorityAnnotationComparator<T> |
getInstance()
Returns the instance of the comparator.
|
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 <T> PriorityAnnotationComparator<T> getInstance()
T
- The type of values to comparepublic int compare(T o1, T o2)
compare
in interface Comparator<T>
Copyright © 2010–2024. All rights reserved.