Annotations instances.
| Modifier and Type | Field and Description |
|---|---|
| public static final AnnotationsList | EMPTY
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static AnnotationsList | Returns: non-null; the combinationnon-null; an instancenon-null; the other instanceConstructs an immutable instance which is the combination of the two given instances. |
| public Annotations | Returns: non-null; element at that index>= 0, < size(); which indexGets the element at the given index. |
| public void | set(int
>= 0, < size(); which indexnull-ok; the element to set at nSets the element at the given index. |
| EMPTY | back to summary |
|---|---|
| public static final AnnotationsList EMPTY
| |
| AnnotationsList | back to summary |
|---|---|
| public AnnotationsList(int size) Constructs an instance. All indices initially contain
| |
| combine | back 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.
| |
| get | back 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
| |
| set | back to summary |
|---|---|
| public void set(int n, Annotations a) Sets the element at the given index. The given element must be immutable.
| |