com.atlassian.jira.issue.comparator
Class UserBestNameComparator
java.lang.Object
com.atlassian.jira.issue.comparator.UserBestNameComparator
- All Implemented Interfaces:
- Comparator<com.atlassian.crowd.embedded.api.User>
public class UserBestNameComparator
- extends Object
- implements Comparator<com.atlassian.crowd.embedded.api.User>
This comparator tries to compare two users based on their 'best name'
ie their full name if possible, otherwise their username.
This comparator completely ignores case. This uses the users locale to make sure that we correctly sort
i18n characters.
- Since:
- v4.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserBestNameComparator
public UserBestNameComparator(Locale locale)
UserBestNameComparator
public UserBestNameComparator()
compare
public int compare(com.atlassian.crowd.embedded.api.User user1,
com.atlassian.crowd.embedded.api.User user2)
- Specified by:
compare in interface Comparator<com.atlassian.crowd.embedded.api.User>
Copyright © 2002-2011 Atlassian. All Rights Reserved.