com.atlassian.jira.bc.project.component
Class ProjectComponentComparator

java.lang.Object
  extended by com.atlassian.jira.bc.project.component.ProjectComponentComparator
All Implemented Interfaces:
Comparator<ProjectComponent>

public class ProjectComponentComparator
extends Object
implements Comparator<ProjectComponent>

Comparator for ProjectComponent objects, singleton, use static instance.


Field Summary
static ProjectComponentComparator INSTANCE
          Compares two ProjectComponents, grouping them by project and then by case-insensitive component name.
 
Method Summary
 int compare(ProjectComponent projectComponent1, ProjectComponent projectComponent2)
           
 
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

INSTANCE

public static final ProjectComponentComparator INSTANCE
Compares two ProjectComponents, grouping them by project and then by case-insensitive component name.

Method Detail

compare

public int compare(ProjectComponent projectComponent1,
                   ProjectComponent projectComponent2)
Specified by:
compare in interface Comparator<ProjectComponent>


Copyright © 2002-2009 Atlassian. All Rights Reserved.