Package com.atlassian.jira.util.collect
Class ListOrderComparator<T>
java.lang.Object
com.atlassian.jira.util.collect.ListOrderComparator<T>
- All Implemented Interfaces:
Comparator<T>
Compare objects based on their order in a supplied list. Fails if the compared objects are not in the source list.
- Since:
- v3.13
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
ListOrderComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-