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

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

public class LocaleSensitiveProjectComponentNameComparator
extends Object
implements Comparator<ProjectComponent>

Comparator for ProjectComponent objects that only compares the names, does not take into account the project id in the components, uses the constructed locale to correctly sort component names taking into account i18n strings.

Since:
v4.0

Constructor Summary
LocaleSensitiveProjectComponentNameComparator(Locale locale)
           
 
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
 

Constructor Detail

LocaleSensitiveProjectComponentNameComparator

public LocaleSensitiveProjectComponentNameComparator(Locale locale)
Method Detail

compare

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.