Not thread-safe.
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IntList | |
| pack-priv static int | |
| private void | |
| public void | |
| public int | |
| private void | |
| public int | Returns: the old value.the 0 - based index. i, int the new value. val)Sets the value at index |
| public int | |
| public int[] |
| IntList | back to summary |
|---|---|
| public IntList(int capacity) Creates an | |
| IntList | back to summary |
|---|---|
| public IntList() Creates an empty | |
| add | back to summary |
|---|---|
| public IntList add(int i) Adds
| |
| calcSize | back to summary |
|---|---|
pack-priv static int calcSize(int expectedSize, int factor)
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(int i) | |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int capacity) Ensures that there is at least
| |
| get | back to summary |
|---|---|
| public int get(int i) Gets the int value at a index
| |
| grow | back to summary |
|---|---|
| private void grow(int l) | |
| set | back to summary |
|---|---|
| public int set(int i, int val) Sets the value at index
| |
| size | back to summary |
|---|---|
| public int size() Gets the number of int values stored. | |
| toArray | back to summary |
|---|---|
| public int[] toArray() Creates a | |