Package com.android.dx.cf.code
Class ByteBlockList
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.util.LabeledList
com.android.dx.cf.code.ByteBlockList
- All Implemented Interfaces:
ToHuman
List of
ByteBlock
instances.-
Constructor Summary
-
Method Summary
Methods inherited from class com.android.dx.util.LabeledList
getLabelsInOrder, getMaxLabel, indexOfLabel, set, shrinkToFit
Methods inherited from class com.android.dx.util.FixedSizeList
equals, get0, getOrNull0, hashCode, set0, size, toHuman, toHuman, toString, toString
Methods inherited from class com.android.dx.util.MutabilityControl
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable
-
Constructor Details
-
ByteBlockList
public ByteBlockList(int size) Constructs an instance.- Parameters:
size
->= 0;
the number of elements to be in the list
-
-
Method Details
-
get
Gets the indicated element. 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 element- Returns:
non-null;
the indicated element
-
labelToBlock
Gets the block with the given label.- Parameters:
label
- the label to look for- Returns:
non-null;
the block with the given label
-
set
Sets the element at the given index.- Parameters:
n
->= 0, < size();
which elementbb
-null-ok;
the value to store
-