org.openscience.nmrshiftdb.util
Class IdentifierComparator

java.lang.Object
  extended by org.openscience.nmrshiftdb.util.IdentifierComparator
All Implemented Interfaces:
java.util.Comparator

public class IdentifierComparator
extends java.lang.Object
implements java.util.Comparator

This is implememtation of Comparator used for sorting ValueaForVelocityBeans accoring to the identifier.

Author:
shk3

Constructor Summary
IdentifierComparator()
           
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          The compare method
 
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

IdentifierComparator

public IdentifierComparator()
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
The compare method

Specified by:
compare in interface java.util.Comparator
Parameters:
obj1 - The first ValueaForVelocityBean
obj2 - The second ValueaForVelocityBean
Returns:
-1,0,1