| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | ensureCapacity(int
the minimum capacity minCapacity)Ensure the underlying array is large enough for the given number of entries. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public void | |
| public void | removeRange(int
the index of the first item to remove fromIndex, int upper bound (exclusive) toIndex)Remove a number of elements. |
| public int | |
| public void | |
| public String |
| data | back to summary |
|---|---|
| private int[] data | |
| hash | back to summary |
|---|---|
| private int hash | |
| size | back to summary |
|---|---|
| private int size | |
| IntArray | back to summary |
|---|---|
| public IntArray() Create an int array with the default initial capacity. | |
| IntArray | back to summary |
|---|---|
| public IntArray(int capacity) Create an int array with specified initial capacity.
| |
| IntArray | back to summary |
|---|---|
| public IntArray(int[] data) Create an int array with the given values and size.
| |
| add | back to summary |
|---|---|
| public void add(int value) Append a value.
| |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int minCapacity) Ensure the underlying array is large enough for the given number of entries.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| get | back to summary |
|---|---|
| public int get(int index) Get the value at the given index.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| remove | back to summary |
|---|---|
| public void remove(int index) Remove the value at the given index.
| |
| removeRange | back to summary |
|---|---|
| public void removeRange(int fromIndex, int toIndex) Remove a number of elements.
| |
| size | back to summary |
|---|---|
| public int size() Get the size of the list.
| |
| toArray | back to summary |
|---|---|
| public void toArray(int[] array) Convert this list to an array. The target array must be big enough.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |