com.atlassian.jira.issue.comparator
Class LocaleSensitiveStringComparator

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

public class LocaleSensitiveStringComparator
extends Object
implements Comparator<String>

Uses a locale to do a correct sort that will correctly sort i18n strings.

Since:
v4.0

Constructor Summary
LocaleSensitiveStringComparator(Locale locale)
           
 
Method Summary
 int compare(String o1, String o2)
           
 
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

LocaleSensitiveStringComparator

public LocaleSensitiveStringComparator(Locale locale)
Method Detail

compare

public int compare(String o1,
                   String o2)
Specified by:
compare in interface Comparator<String>


Copyright © 2002-2012 Atlassian. All Rights Reserved.