com.atlassian.jira.issue.comparator
Class UserNameComparator

java.lang.Object
  extended by com.atlassian.jira.issue.comparator.UserNameComparator
All Implemented Interfaces:
Comparator<com.atlassian.crowd.embedded.api.User>

public class UserNameComparator
extends Object
implements Comparator<com.atlassian.crowd.embedded.api.User>

Used to sort users based on Principal.getName(), not taking into account the users full name. If you want to sort first on the full name then use a UserCachingComparator.

Since:
v4.0

Constructor Summary
UserNameComparator(Locale locale)
           
 
Method Summary
 int compare(com.atlassian.crowd.embedded.api.User user1, com.atlassian.crowd.embedded.api.User user2)
           
 
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

UserNameComparator

public UserNameComparator(Locale locale)
Method Detail

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-2015 Atlassian. All Rights Reserved.