gov.nih.nlm.mms.browser
Class CodeSearchFinder.NameComparator
java.lang.Object
gov.nih.nlm.mms.browser.CodeSearchFinder.NameComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- CodeSearchFinder
- public class CodeSearchFinder.NameComparator
- extends Object
- implements Comparator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeSearchFinder.NameComparator
public CodeSearchFinder.NameComparator()
- Instantiates a comparator.
compare
public int compare(Object o1,
Object o2)
- Compares the specified field of each
Atom
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.
Copyright ©2005