com.atlassian.user.search
Class EntityNameAlphaComparator
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityNameAlphaComparator
public EntityNameAlphaComparator(Collator collator)
EntityNameAlphaComparator
public EntityNameAlphaComparator()
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.