gov.nih.nlm.mms.browser
Class WordSearchFinderOptionsGUI.CuiSortOrderComparator
java.lang.Object
gov.nih.nlm.mms.browser.WordSearchFinderOptionsGUI.CuiSortOrderComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- WordSearchFinderOptionsGUI
- protected class WordSearchFinderOptionsGUI.CuiSortOrderComparator
- extends Object
- implements Comparator
Concept Comparator based on CUI.
WordSearchFinderOptionsGUI.CuiSortOrderComparator
public WordSearchFinderOptionsGUI.CuiSortOrderComparator()
- Instantiates a CuiSortOrderComparator.
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.
- Returns:
String
equals
public boolean equals(Comparator comp)
Copyright ©2005