FileDocCategorySizeDatePackage
ParamAPI.javaAPI DocAndroid 1.5 API1477Wed May 06 22:41:22 BST 2009jdiff

ParamAPI

public class ParamAPI extends Object implements Comparable
Class to represent any (name, type) pair such as a parameter. Analogous to ParamType in the Javadoc doclet API. The method used for Collection comparison (compareTo) must make its comparison based upon everything that is known about this parameter. See the file LICENSE.txt for copyright details.
author
Matthew Doar, mdoar@pobox.com

Fields Summary
public String
name_
Name of the (name, type) pair.
public String
type_
Type of the (name, type) pair.
Constructors Summary
public ParamAPI(String name, String type)

        name_ = name;
        type_ = type;
    
Methods Summary
public intcompareTo(java.lang.Object o)
Compare two ParamAPI objects using both name and type.

        ParamAPI oParamAPI = (ParamAPI)o;
        int comp = name_.compareTo(oParamAPI.name_);
        if (comp != 0)
            return comp;
        comp = type_.compareTo(oParamAPI.type_);
        if (comp != 0)
            return comp;
        return 0;
    
public booleanequals(java.lang.Object o)
Tests two ParamAPI objects using just the name, used by indexOf().

        if (name_.compareTo(((ParamAPI)o).name_) == 0)
            return true;
        return false;
    
public java.lang.StringtoString()
Used to create signatures.

        if (type_.compareTo("void") == 0)
            return "";
        return type_;