com.atlassian.user.search
Class EntityNameAlphaComparator

java.lang.Object
  extended by com.atlassian.user.search.EntityNameAlphaComparator
All Implemented Interfaces:
Comparator<Entity>

public class EntityNameAlphaComparator
extends Object
implements Comparator<Entity>

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(Collator collator)
           
 
Method Summary
 int compare(Entity o1, Entity 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(Collator collator)

EntityNameAlphaComparator

public EntityNameAlphaComparator()
Method Detail

compare

public int compare(Entity o1,
                   Entity o2)
Specified by:
compare in interface Comparator<Entity>


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