TC Java
2009 Version

gov.nih.nlm.nls.tc.Jdi
Class WordSignalWcDcComparator<T>

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

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

This class provides methods to compare WordSignalWcDc object.

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
WordSignalWcDcComparator()
           
 
Method Summary
 int compare(T o1, T o2)
          This method compare two WordSignalWcDc objects by the following order.
 
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

WordSignalWcDcComparator

public WordSignalWcDcComparator()
Method Detail

compare

public int compare(T o1,
                   T o2)
This method compare two WordSignalWcDc objects by the following order. Compare signal, word count, document count, words.

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

Submit a bug or feature

Copyright © 2009 National Library of Medicine