public static final class CstArray.List extends FixedSizeList implements java.lang.Comparable<CstArray.List>
Constant instances.| Constructor and Description |
|---|
List(int size)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CstArray.List other) |
Constant |
get(int n)
Gets the element at the given index.
|
void |
set(int n,
Constant a)
Sets the element at the given index.
|
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toStringisImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutablepublic List(int size)
null.size - the size of the listpublic int compareTo(CstArray.List other)
compareTo in interface java.lang.Comparable<CstArray.List>public Constant get(int n)
NullPointerException.n - >= 0, < size(); which indexnon-null; element at that indexpublic void set(int n,
Constant a)
n - >= 0, < size(); which indexa - null-ok; the element to set at nCopyright © 2020. All Rights Reserved.