com.atlassian.jira.util
Class NameComparator

java.lang.Object
  extended by com.atlassian.jira.util.NameComparator
All Implemented Interfaces:
Comparator<Named>

public class NameComparator
extends Object
implements Comparator<Named>

Comparison function that sorts based on the name of a Named object. That is, it sorts based on the value of the getName() method.


Field Summary
static Comparator<Named> COMPARATOR
           
 
Constructor Summary
NameComparator()
           
 
Method Summary
 int compare(Named o1, Named 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
 

Field Detail

COMPARATOR

public static final Comparator<Named> COMPARATOR
Constructor Detail

NameComparator

public NameComparator()
Method Detail

compare

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.