com.atlassian.jira.workflow
Class JiraWorkflowComparator

java.lang.Object
  extended by com.atlassian.jira.workflow.JiraWorkflowComparator
All Implemented Interfaces:
Comparator

public class JiraWorkflowComparator
extends Object
implements Comparator

A Comparator for the JiraWorkflow class.


Field Summary
static Comparator COMPARATOR
           
 
Constructor Summary
JiraWorkflowComparator()
           
 
Method Summary
 int compare(Object workflow1, Object workflow2)
          The natural order of JiraWorkflow objects should be: 1) All instances of DefaultJiraWorkflow (sorted alphabetically ignoring case); followed by 2) all other instances of JiraWorkflow (also sorted alphabetically ignoring case).
 
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
 

Field Detail

COMPARATOR

public static final Comparator COMPARATOR
Constructor Detail

JiraWorkflowComparator

public JiraWorkflowComparator()
Method Detail

compare

public int compare(Object workflow1,
                   Object workflow2)
The natural order of JiraWorkflow objects should be: 1) All instances of DefaultJiraWorkflow (sorted alphabetically ignoring case); followed by 2) all other instances of JiraWorkflow (also sorted alphabetically ignoring case).

Specified by:
compare in interface Comparator


Copyright © 2002-2008 Atlassian. All Rights Reserved.