DiffOutputpublic class DiffOutput extends Object implements ComparableClass to represent a single documentation difference.
See the file LICENSE.txt for copyright details. |
Fields Summary |
---|
public String | pkgName_The package name for this difference. | public String | className_The class name for this difference, may be null. | public String | id_The HTML named anchor identifier for this difference. | public String | title_The title for this difference. | public String | text_The text for this difference, with deleted and added words marked. |
Constructors Summary |
---|
public DiffOutput(String pkgName, String className, String id, String title, String text)Constructor.
pkgName_ = pkgName;
className_ = className;
id_ = id;
title_ = title;
text_ = text;
|
Methods Summary |
---|
public int | compareTo(java.lang.Object o)Compare two DiffOutput objects, so they will appear in the correct
package.
DiffOutput oDiffOutput = (DiffOutput)o;
int comp = pkgName_.compareTo(oDiffOutput.pkgName_);
if (comp != 0)
return comp;
// Always put the package-level output at the top - not yet working
// if (id_.compareTo("package") == 0)
// return -1;
return id_.compareTo(oDiffOutput.id_);
|
|