edu.jhu.tmaj.util.data
Class AlphabeticalComparator

java.lang.Object
  extended by edu.jhu.tmaj.util.data.AlphabeticalComparator
All Implemented Interfaces:
java.util.Comparator

public final class AlphabeticalComparator
extends java.lang.Object
implements java.util.Comparator

A Comparator that compares objects in case insensitive alphabetical order using their toString() method.


Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
static AlphabeticalComparator getInstance()
           
 
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
 

Method Detail

compare

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

getInstance

public static AlphabeticalComparator getInstance()