Package com.android.dx.rop.cst
Class CstArray.List
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.rop.cst.CstArray.List
- All Implemented Interfaces:
ToHuman
,Comparable<CstArray.List>
- Enclosing class:
CstArray
List of
Constant
instances.-
Constructor Summary
-
Method Summary
Methods inherited from class com.android.dx.util.FixedSizeList
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toString
Methods inherited from class com.android.dx.util.MutabilityControl
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable
-
Constructor Details
-
List
public List(int size) Constructs an instance. All indices initially containnull
.- Parameters:
size
- the size of the list
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CstArray.List>
-
get
Gets the element at the given index. It is an error to call this with the index for an element which was never set; if you do that, this will throwNullPointerException
.- Parameters:
n
->= 0, < size();
which index- Returns:
non-null;
element at that index
-
set
Sets the element at the given index.- Parameters:
n
->= 0, < size();
which indexa
-null-ok;
the element to set atn
-