com.android.dx.rop.annotation
Class AnnotationsList
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.rop.annotation.AnnotationsList
- All Implemented Interfaces:
- ToHuman
public final class AnnotationsList
- extends FixedSizeList
List of Annotations instances.
| Methods inherited from class com.android.dx.util.FixedSizeList |
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toString |
EMPTY
public static final AnnotationsList EMPTY
non-null; immutable empty instance
AnnotationsList
public AnnotationsList(int size)
- Constructs an instance. All indices initially contain
null.
- Parameters:
size - the size of the list
combine
public static AnnotationsList combine(AnnotationsList list1,
AnnotationsList list2)
- Constructs an immutable instance which is the combination of
the two given instances. The two instances must each have the
same number of elements, and each pair of elements must contain
disjoint sets of types.
- Parameters:
list1 - non-null; an instancelist2 - non-null; the other instance
- Returns:
non-null; the combination
get
public Annotations get(int n)
- 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 throw
NullPointerException.
- Parameters:
n - >= 0, < size(); which index
- Returns:
non-null; element at that index
set
public void set(int n,
Annotations a)
- Sets the element at the given index. The given element must be
immutable.
- Parameters:
n - >= 0, < size(); which indexa - null-ok; the element to set at n
Copyright © 2013. All Rights Reserved.