com.atlassian.core.user
Class BestNameComparator2

java.lang.Object
  extended bycom.atlassian.core.user.BestNameComparator2
All Implemented Interfaces:
java.util.Comparator

public class BestNameComparator2
extends java.lang.Object
implements java.util.Comparator

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.


Constructor Summary
BestNameComparator2()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object 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

BestNameComparator2

public BestNameComparator2()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.