FileDocCategorySizeDatePackage
CstArray.javaAPI DocAndroid 5.1 API4179Thu Mar 12 22:18:30 GMT 2015com.android.dx.rop.cst

CstArray

public final class CstArray extends Constant
Constant type to represent a fixed array of other constants.

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

param
list {@code 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
{@code 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";