com.atlassian.jira.util.collect
Class ResolvingComparator<I,O>

java.lang.Object
  extended by com.atlassian.jira.util.collect.ResolvingComparator<I,O>
All Implemented Interfaces:
java.util.Comparator<I>

public class ResolvingComparator<I,O>
extends java.lang.Object
implements java.util.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

Constructor Summary
ResolvingComparator(Resolver<I,O> resolver, java.util.Comparator<O> comparator)
           
 
Method Summary
 int compare(I o1, I 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

ResolvingComparator

public ResolvingComparator(Resolver<I,O> resolver,
                           java.util.Comparator<O> comparator)
Method Detail

compare

public int compare(I o1,
                   I o2)
Specified by:
compare in interface java.util.Comparator<I>


Copyright © 2002-2010 Atlassian. All Rights Reserved.