Top Description Fields Constructors Methods
org.droidparts.dexmaker.dx.rop.annotation

public final Class AnnotationsList

extends FixedSizeList
Class Inheritance
Imports
org.droidparts.dexmaker.dx.util.FixedSizeList

List of Annotations instances.

Field Summary

Modifier and TypeField and Description
public static final AnnotationsList
EMPTY

non-null; immutable empty instance

Constructor Summary

AccessConstructor and Description
public
AnnotationsList(int
the size of the list
size
)

Constructs an instance.

Method Summary

Modifier and TypeMethod and Description
public static AnnotationsList

Returns:

non-null; the combination
combine
(AnnotationsList
non-null; an instance
list1
,
AnnotationsList
non-null; the other instance
list2
)

Constructs an immutable instance which is the combination of the two given instances.

public Annotations

Returns:

non-null; element at that index
get
(int
>= 0, < size(); which index
n
)

Gets the element at the given index.

public void
set(int
>= 0, < size(); which index
n
,
Annotations
null-ok; the element to set at n
a
)

Sets the element at the given index.

Inherited from org.droidparts.dexmaker.dx.util.FixedSizeList:
equalsget0getOrNull0hashCodeset0shrinkToFitsizetoHumantoHumantoStringtoString

Field Detail

EMPTYback to summary
public static final AnnotationsList EMPTY

non-null; immutable empty instance

Constructor Detail

AnnotationsListback to summary
public AnnotationsList(int size)

Constructs an instance. All indices initially contain null.

Parameters
size:int

the size of the list

Method Detail

combineback to summary
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:AnnotationsList

non-null; an instance

list2:AnnotationsList

non-null; the other instance

Returns:AnnotationsList

non-null; the combination

getback to summary
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:int

>= 0, < size(); which index

Returns:Annotations

non-null; element at that index

setback to summary
public void set(int n, Annotations a)

Sets the element at the given index. The given element must be immutable.

Parameters
n:int

>= 0, < size(); which index

a:Annotations

null-ok; the element to set at n