com.atlassian.user.search
Class EntityNameAlphaComparator

java.lang.Object
  extended bycom.atlassian.user.search.EntityNameAlphaComparator
All Implemented Interfaces:
java.util.Comparator

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

Compares two Entity objects using their Entity.getName() methods and a collator (which can be provided to the constructor). Instances of this class are not thread-safe if created with the no-args constructor because the Collator instance used for comparison is not thread-safe.


Constructor Summary
EntityNameAlphaComparator()
           
EntityNameAlphaComparator(java.text.Collator collator)
           
 
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

EntityNameAlphaComparator

public EntityNameAlphaComparator(java.text.Collator collator)

EntityNameAlphaComparator

public EntityNameAlphaComparator()
Method Detail

compare

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


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.