com.atlassian.jira.issue.comparator
Class LocaleSensitiveProjectNameComparator

java.lang.Object
  extended by com.atlassian.jira.issue.comparator.LocaleSensitiveProjectNameComparator
All Implemented Interfaces:
java.util.Comparator<Project>

public class LocaleSensitiveProjectNameComparator
extends java.lang.Object
implements java.util.Comparator<Project>

Comparator for Project objects that only compares the names, uses the constructed locale to correctly sort constants names taking into account i18n strings.

Since:
v4.0

Constructor Summary
LocaleSensitiveProjectNameComparator(java.util.Locale locale)
           
 
Method Summary
 int compare(Project project1, Project project2)
           
 
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

LocaleSensitiveProjectNameComparator

public LocaleSensitiveProjectNameComparator(java.util.Locale locale)
Method Detail

compare

public int compare(Project project1,
                   Project project2)
Specified by:
compare in interface java.util.Comparator<Project>


Copyright © 2002-2010 Atlassian. All Rights Reserved.