| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private int | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public void | |
| public final int | |
| public final int | |
| public void | |
| public Object | |
| private void | |
| public int | |
| public int | |
| public void | |
| private static int | |
| public void | |
| public void | |
| public int | |
| public void | |
| private static void | |
| public void | |
| public final void | |
| public void | |
| public void | |
| public int[] |
| _array | back to summary |
|---|---|
| private int[] _array | |
| _free | back to summary |
|---|---|
| private int _free | |
| _size | back to summary |
|---|---|
| private int _size | |
| InitialSize | back to summary |
|---|---|
| private static final int InitialSize | |
| IntegerArray | back to summary |
|---|---|
| public IntegerArray() | |
| IntegerArray | back to summary |
|---|---|
| public IntegerArray(int size) | |
| IntegerArray | back to summary |
|---|---|
| public IntegerArray(int[] array) | |
| add | back to summary |
|---|---|
| public final void add(int value) | |
| addNew | back to summary |
|---|---|
| public void addNew(int value) Adds new int at the end if not already present. | |
| at | back to summary |
|---|---|
| public final int at(int index) | |
| cardinality | back to summary |
|---|---|
| public final int cardinality() | |
| clear | back to summary |
|---|---|
| public void clear() | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| growArray | back to summary |
|---|---|
| private void growArray(int size) | |
| indexOf | back to summary |
|---|---|
| public int indexOf(int n) | |
| last | back to summary |
|---|---|
| public int last() | |
| merge | back to summary |
|---|---|
| public void merge(final IntegerArray other) Merge two sorted arrays and eliminate duplicates. Elements of the other IntegerArray must not be changed. | |
| partition | back to summary |
|---|---|
| private static int partition(int[] array, int p, int r) | |
| pop | back to summary |
|---|---|
| public void pop() | |
| pop | back to summary |
|---|---|
| public void pop(int n) | |
| popLast | back to summary |
|---|---|
| public int popLast() | |
| back to summary | |
|---|---|
| public void print(PrintStream out) | |
| quicksort | back to summary |
|---|---|
| private static void quicksort(int[] array, int p, int r) | |
| reverse | back to summary |
|---|---|
| public void reverse() | |
| set | back to summary |
|---|---|
| public final void set(int index, int value) | |
| setLast | back to summary |
|---|---|
| public void setLast(int n) | |
| sort | back to summary |
|---|---|
| public void sort() | |
| toIntArray | back to summary |
|---|---|
| public int[] toIntArray() | |