FileDocCategorySizeDatePackage
CstArray.javaAPI DocAndroid 1.5 API4391Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstArray

public final class CstArray extends Constant
Constant type to represent a fixed array of other constants. The contents may be of any type other than {@link CstUtf8}.

Fields Summary
private final List
list
non-null; the actual list of contents
Constructors Summary
public CstArray(List list)
Constructs an instance.

param
list non-null; the actual list of contents

        if (list == null) {
            throw new NullPointerException("list == null");
        }

        list.throwIfMutable();

        this.list = list;
    
Methods Summary
protected intcompareTo0(Constant other)
{@inheritDoc}

        return list.compareTo(((CstArray) other).list);
    
public booleanequals(java.lang.Object other)
{@inheritDoc}

        if (! (other instanceof CstArray)) {
            return false;
        }

        return list.equals(((CstArray) other).list);
    
public com.android.dx.rop.cst.CstArray$ListgetList()
Get the underlying list.

return
non-null; the list

        return list;
    
public inthashCode()
{@inheritDoc}

        return list.hashCode();
    
public booleanisCategory2()
{@inheritDoc}

        return false;
    
public java.lang.StringtoHuman()
{@inheritDoc}

        return list.toHuman("{", ", ", "}");
    
public java.lang.StringtoString()
{@inheritDoc}

        return list.toString("array{", ", ", "}");
    
public java.lang.StringtypeName()
{@inheritDoc}

        return "array";