Class StdMethodList
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.cf.iface.StdMethodList
- All Implemented Interfaces:
MethodList, ToHuman
Standard implementation of
MethodList, which directly stores
an array of Method objects and can be made immutable.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FixedSizeList
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringMethods inherited from class MutabilityControl
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutableMethods inherited from interface MethodList
isMutable, size
-
Constructor Details
-
StdMethodList
public StdMethodList(int size) Constructs an instance. All indices initially containnull.- Parameters:
size- the size of the list
-
-
Method Details
-
get
Get thenth method.- Specified by:
getin interfaceMethodList- Parameters:
n-n >= 0, n < size();which method- Returns:
non-null;the method in question
-
set
Sets the method at the given index.- Parameters:
n->= 0, < size();which methodmethod-null-ok;the method object
-