Class PriorityAnnotationComparator<T>
java.lang.Object
org.axonframework.common.annotation.PriorityAnnotationComparator<T>
- Type Parameters:
T- The type of object to compare
- All Implemented Interfaces:
Comparator<T>
Comparator that compares objects based on the value on an
@Priority
annotation.- Since:
- 2.1.2
- Author:
- Allard Buijze
-
Method Summary
Modifier and TypeMethodDescriptionintstatic <T> PriorityAnnotationComparator<T> Returns the instance of the comparator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
getInstance
Returns the instance of the comparator.- Type Parameters:
T- The type of values to compare- Returns:
- a comparator comparing objects based on their @Priority annotation
-
compare
- Specified by:
comparein interfaceComparator<T>
-