|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.util.collect.ListOrderComparator<T>
public class ListOrderComparator<T>
Compare objects based on their order in a supplied list. Fails if the compared objects are not in the source list.
Constructor Summary | |
---|---|
ListOrderComparator(java.util.List<T> list)
|
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ListOrderComparator(java.util.List<T> list)
Method Detail |
---|
public int compare(T o1, T o2)
compare
in interface java.util.Comparator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |