com.atlassian.jira.workflow
Class JiraWorkflowComparator

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

public class JiraWorkflowComparator
extends Object
implements Comparator<JiraWorkflow>

A Comparator for the JiraWorkflow class.


Field Summary
static Comparator<JiraWorkflow> COMPARATOR
           
 
Constructor Summary
JiraWorkflowComparator()
           
 
Method Summary
 int compare(JiraWorkflow workflow1, JiraWorkflow 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<JiraWorkflow> COMPARATOR
Constructor Detail

JiraWorkflowComparator

public JiraWorkflowComparator()
Method Detail

compare

public int compare(JiraWorkflow workflow1,
                   JiraWorkflow 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<JiraWorkflow>


Copyright © 2002-2009 Atlassian. All Rights Reserved.