PackageAPIpublic class PackageAPI extends Object implements ComparableClass to represent a package, analogous to PackageDoc in the
Javadoc doclet API.
The method used for Collection comparison (compareTo) must make its
comparison based upon everything that is known about this package.
See the file LICENSE.txt for copyright details. |
Fields Summary |
---|
public String | name_Full qualified name of the package. | public List | classes_Classes within this package. | public String | doc_The doc block, default is null. |
Constructors Summary |
---|
public PackageAPI(String name)Constructor.
name_ = name;
classes_ = new ArrayList(); // ClassAPI[]
|
Methods Summary |
---|
public int | compareTo(java.lang.Object o)Compare two PackageAPI objects by name.
PackageAPI oPackageAPI = (PackageAPI)o;
if (APIComparator.docChanged(doc_, oPackageAPI.doc_))
return -1;
return name_.compareTo(oPackageAPI.name_);
| public boolean | equals(java.lang.Object o)Tests two packages, using just the package name, used by indexOf().
if (name_.compareTo(((PackageAPI)o).name_) == 0)
return true;
return false;
|
|