com.atlassian.jira.issue.comparator
Class LocaleSensitiveProjectNameComparator

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

public class LocaleSensitiveProjectNameComparator
extends Object
implements 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(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(Locale locale)
Method Detail

compare

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.