com.atlassian.jira.issue.comparator
Class IssueCustomFieldComparator

java.lang.Object
  extended bycom.atlassian.jira.issue.comparator.IssueCustomFieldComparator
All Implemented Interfaces:
java.util.Comparator

public class IssueCustomFieldComparator
extends java.lang.Object
implements java.util.Comparator


Constructor Summary
IssueCustomFieldComparator(GenericValue customfield)
          Construct with the customfield you want to search on
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Takes two issues and then lookups up the customfield value specified in the constuctor and compares them
 
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

IssueCustomFieldComparator

public IssueCustomFieldComparator(GenericValue customfield)
Construct with the customfield you want to search on

Parameters:
customfield - must not be null.
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Takes two issues and then lookups up the customfield value specified in the constuctor and compares them

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - Issue GenericValue
o2 - Issue GenericValue
Returns: