com.atlassian.jira.bc.project.component
Class LocaleSensitiveProjectComponentNameComparator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleSensitiveProjectComponentNameComparator
public LocaleSensitiveProjectComponentNameComparator(Locale locale)
compare
public int compare(ProjectComponent projectComponent1,
ProjectComponent projectComponent2)
- Specified by:
compare
in interface Comparator<ProjectComponent>
Copyright © 2002-2013 Atlassian. All Rights Reserved.