com.atlassian.jira.util.collect
Class ResolvingComparator<I,O>
java.lang.Object
com.atlassian.jira.util.collect.ResolvingComparator<I,O>
- All Implemented Interfaces:
- Comparator<I>
public class ResolvingComparator<I,O>
- extends Object
- implements Comparator<I>
Comparator that first resolves an input to an output type, and then delegates to a comparator of the output type.
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolvingComparator
public ResolvingComparator(Resolver<I,O> resolver,
Comparator<O> comparator)
compare
public int compare(I o1,
I o2)
- Specified by:
compare
in interface Comparator<I>
Copyright © 2002-2012 Atlassian. All Rights Reserved.