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>

@PublicApi
public class ProjectComponentComparator
extends Object
implements Comparator<ProjectComponent>

Comparator for ProjectComponent objects, singleton, use static instance.


Field Summary
static Comparator<String> COMPONENT_NAME_COMPARATOR
           
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.


COMPONENT_NAME_COMPARATOR

public static final Comparator<String> COMPONENT_NAME_COMPARATOR
Method Detail

compare

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.