public final class AnnotationsList extends FixedSizeList
Annotations instances.| Modifier and Type | Field and Description |
|---|---|
static AnnotationsList |
EMPTY
non-null; immutable empty instance |
| Constructor and Description |
|---|
AnnotationsList(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
static AnnotationsList |
combine(AnnotationsList list1,
AnnotationsList list2)
Constructs an immutable instance which is the combination of
the two given instances.
|
Annotations |
get(int n)
Gets the element at the given index.
|
void |
set(int n,
Annotations a)
Sets the element at the given index.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic static final AnnotationsList EMPTY
non-null; immutable empty instancepublic AnnotationsList(int size)
null.size - the size of the listpublic static AnnotationsList combine(AnnotationsList list1, AnnotationsList list2)
list1 - non-null; an instancelist2 - non-null; the other instancenon-null; the combinationpublic Annotations get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic void set(int n,
Annotations a)
n - >= 0, < size(); which indexa - null-ok; the element to set at nCopyright © 2020. All Rights Reserved.