FileDocCategorySizeDatePackage
ClassComparator.javaAPI DocExample910Wed Apr 19 11:17:16 BST 2000com.sun.tools.doclets

ClassComparator

public class ClassComparator extends Object implements Comparator
Comparator to be used to compare the class names.

Fields Summary
Constructors Summary
Methods Summary
public intcompare(java.lang.Object o1, java.lang.Object o2)
Compare the classnames of classes represented by two {@link com.sun.javadoc.ClassDoc} objects.

param
o1 ClassDoc object1
param
o2 ClassDoc object2
return
Return the value returned by {@link java.lang.String#compareTo} method from java.lang.String class.

        return (((ClassDoc)o1).name())
            .compareTo(((ClassDoc)o2).name());