FileDocCategorySizeDatePackage
PackageAPI.javaAPI DocAndroid 1.5 API1325Wed May 06 22:41:22 BST 2009jdiff

PackageAPI

public class PackageAPI extends Object implements Comparable
Class 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.
author
Matthew Doar, mdoar@pobox.com

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 intcompareTo(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 booleanequals(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;