Class ApplicationUserBestNameComparator

java.lang.Object
com.atlassian.jira.issue.comparator.ApplicationUserBestNameComparator
All Implemented Interfaces:
Comparator<ApplicationUser>

public class ApplicationUserBestNameComparator extends Object implements Comparator<ApplicationUser>
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:
v6.0
  • Constructor Details

    • ApplicationUserBestNameComparator

      public ApplicationUserBestNameComparator(Locale locale)
    • ApplicationUserBestNameComparator

      public ApplicationUserBestNameComparator()
  • Method Details