java.util.ArrayList , but is written specifically for ints in order to reduce boxing and unboxing to Integers, reduce the memory
required and improve performance of pack200.
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | IntList(final int
the initial capacity of this IntList capacity)Constructs a new instance of IntList with the specified capacity. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: truethe object to add object)Adds the specified object at the end of this IntList. |
| public void | |
| public void | |
| public void | |
| public int | |
| private void | |
| private void | |
| private void | |
| public void | |
| public boolean | |
| public int | |
| public int | |
| public int[] |
| array | back to summary |
|---|---|
| private int[] array | |
| firstIndex | back to summary |
|---|---|
| private int firstIndex | |
| lastIndex | back to summary |
|---|---|
| private int lastIndex | |
| modCount | back to summary |
|---|---|
| private int modCount | |
| IntList | back to summary |
|---|---|
| public IntList() Constructs a new instance of IntList with capacity for ten elements. | |
| IntList | back to summary |
|---|---|
| public IntList(final int capacity) Constructs a new instance of IntList with the specified capacity.
| |
| add | back to summary |
|---|---|
| public boolean add(final int object) Adds the specified object at the end of this IntList.
| |
| add | back to summary |
|---|---|
| public void add(final int location, final int object) | |
| addAll | back to summary |
|---|---|
| public void addAll(final IntList list) | |
| clear | back to summary |
|---|---|
| public void clear() | |
| get | back to summary |
|---|---|
| public int get(final int location) | |
| growAtEnd | back to summary |
|---|---|
| private void growAtEnd(final int required) | |
| growAtFront | back to summary |
|---|---|
| private void growAtFront(final int required) | |
| growForInsert | back to summary |
|---|---|
| private void growForInsert(final int location, final int required) | |
| increment | back to summary |
|---|---|
| public void increment(final int location) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| remove | back to summary |
|---|---|
| public int remove(final int location) | |
| size | back to summary |
|---|---|
| public int size() | |
| toArray | back to summary |
|---|---|
| public int[] toArray() | |