public class IntArrayList extends AbstractList<Integer> implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
elements |
protected int |
n |
modCount| Constructor and Description |
|---|
IntArrayList() |
IntArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int o) |
int |
capacity() |
Object |
clone() |
boolean |
contains(int v) |
int |
element(int i) |
int[] |
elements() |
void |
ensureCapacity(int newCapacity) |
boolean |
equals(Object o) |
Integer |
get(int i) |
protected void |
grow() |
int |
set(int i,
int newValue)
Set the ith element.
|
void |
setSize(int newSize) |
int |
size() |
String |
toString() |
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArraypublic IntArrayList()
public IntArrayList(int initialCapacity)
public int set(int i,
int newValue)
public boolean add(int o)
public void setSize(int newSize)
protected void grow()
public boolean contains(int v)
public void ensureCapacity(int newCapacity)
public Integer get(int i)
public int element(int i)
public int[] elements()
public int size()
size in interface Collection<Integer>size in interface List<Integer>size in class AbstractCollection<Integer>public int capacity()
public boolean equals(Object o)
equals in interface Collection<Integer>equals in interface List<Integer>equals in class AbstractList<Integer>public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String toString()
toString in class AbstractCollection<Integer>Copyright © 1992–2014 ANTLR. All rights reserved.