org.openmrs.util
Class InsertedOrderComparator

java.lang.Object
  extended by org.openmrs.util.InsertedOrderComparator
All Implemented Interfaces:
java.util.Comparator<java.lang.String>

Deprecated. this is not needed. Use a LinkedHashSet object instead of this class.

public class InsertedOrderComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.String>

This class is intended to be used with either SortedSets or SortedMaps. The keys will be sorted on the order which they are inserted (and hence compared). Caveat: If an item is removed and readded, it will retain the old order


Constructor Summary
InsertedOrderComparator()
          Deprecated.  
 
Method Summary
 int compare(java.lang.String a1, java.lang.String a2)
          Deprecated.  
 
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

InsertedOrderComparator

public InsertedOrderComparator()
Deprecated. 
Method Detail

compare

public int compare(java.lang.String a1,
                   java.lang.String a2)
Deprecated. 
Specified by:
compare in interface java.util.Comparator<java.lang.String>

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change