gov.nih.nlm.umls.meta
Class Concept.ByCUIComparator

java.lang.Object
  extended by gov.nih.nlm.umls.meta.Concept.ByCUIComparator
All Implemented Interfaces:
Comparator
Enclosing interface:
Concept

public static final class Concept.ByCUIComparator
extends Object
implements Comparator

Inner class compares Concepts based on cui.


Constructor Summary
Concept.ByCUIComparator()
          Constructor
 
Method Summary
 int compare(Object o1, Object o2)
          Compares the specified field of each String object.
 boolean equals(Comparator comp)
          Indicates if the given Comparator is a Concept.ByCUIComparator
 String toString()
          Returns the display name for the Comparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

Concept.ByCUIComparator

public Concept.ByCUIComparator()
Constructor

Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares the specified field of each String object.

Specified by:
compare in interface Comparator
Parameters:
o1 - the first Object to be compared.
o2 - the second Object to be compared.
Returns:
An int which might be negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

toString

public String toString()
Returns the display name for the Comparator.

Overrides:
toString in class Object
Returns:
String

equals

public boolean equals(Comparator comp)
Indicates if the given Comparator is a Concept.ByCUIComparator

Parameters:
comp - Comparator
Returns:
true if the given Comparator is a Concept.ByCUIComparator false otherwise


Copyright ©2005