public class ComputedKeysComparator extends Object implements Comparator<BaseSpec>
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BaseSpec a,
BaseSpec b) |
static ComputedKeysComparator |
fromOrder(HashMap<Class,Integer> orderMap)
Static factory method to get an Comparator instance for a given order map
|
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 ComputedKeysComparator fromOrder(HashMap<Class,Integer> orderMap)
orderMap - of precedencepublic int compare(BaseSpec a, BaseSpec b)
compare in interface Comparator<BaseSpec>Copyright © 2023. All rights reserved.