VTT Java
2010 Version

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

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

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

This class provides methods to compare Markup object.

History:

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

Constructor Summary
MarkupComparator()
           
 
Method Summary
 int compare(T o1, T o2)
          This method compares two Markup objects by the order of offset, and then length (smaller last).
 
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

MarkupComparator

public MarkupComparator()
Method Detail

compare

public int compare(T o1,
                   T o2)
This method compares two Markup objects by the order of offset, and then length (smaller last).

Specified by:
compare in interface java.util.Comparator<T>
Parameters:
o1 - the first Markup object to be compared
o2 - the second Markup 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