Class KeyBasedComparator
- java.lang.Object
-
- in.cdac.medinfo.csnotk.csnolib.util.KeyBasedComparator
-
- All Implemented Interfaces:
java.util.Comparator<Description>
public class KeyBasedComparator extends java.lang.Object implements java.util.Comparator<Description>
The class compares twoDescriptionobjects on the basis of textual representation.
-
-
Constructor Summary
Constructors Constructor Description KeyBasedComparator(java.lang.String term)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Description o1, Description o2)Compares two Description objects on the basis of textual representation.
-
-
-
Method Detail
-
compare
public int compare(Description o1, Description o2)
Compares two Description objects on the basis of textual representation.- Specified by:
comparein interfacejava.util.Comparator<Description>- Parameters:
o1- Object ofDescription.o2- Object ofDescription.
-
-