TC Java
2011 Version

gov.nih.nlm.nls.tc.Stri
Class StJdComparator<T>

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Stri.StJdComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>

public class StJdComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>

This class provides methods to compare StJd object.

History:

Version:
V-2011
Author:
NLM Lexical Systems Group

Constructor Summary
StJdComparator()
           
 
Method Summary
 int compare(T o1, T o2)
          This method compares two StJd objects by St index.
 
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

StJdComparator

public StJdComparator()
Method Detail

compare

public int compare(T o1,
                   T o2)
This method compares two StJd objects by St index.

Specified by:
compare in interface java.util.Comparator<T>
Parameters:
o1 - the first StJd object to be compared
o2 - the second StJd object to be compared
Returns:
a negative interger, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

TC Java
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine