VTT Java
2010 Version

gov.nih.nlm.nls.vtt.Model
Class TagComparator<T>

java.lang.Object
  extended by gov.nih.nlm.nls.vtt.Model.TagComparator<T>
All Implemented Interfaces:
java.util.Comparator<T>

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

This class provides methods to compare Tag objects.

History:

Version:
V-2010
Author:
NLM NLS Development Team, clu

Constructor Summary
TagComparator()
           
 
Method Summary
 int compare(T o1, T o2)
          This method compares two Tag objects by the name|category.
 
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

TagComparator

public TagComparator()
Method Detail

compare

public int compare(T o1,
                   T o2)
This method compares two Tag objects by the name|category.

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

VTT Java
2010 Version

Submit a bug or feature

Copyright © 2010 National Library of Medicine