public final class IntArrayList
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
IntArrayList() |
IntArrayList(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int o) |
void |
add(int [] values) |
void |
add(int index,
int element) |
void |
clear() |
java.lang.Object |
clone() |
boolean |
contains(int elem) |
void |
copyRange(int fromIndex,
int length,
int toIndex) |
void |
ensureCapacity(int minCapacity) |
void |
fill(int fromIndex,
int toIndex,
int value) |
int |
get(int index) |
int |
getQuick(int index) |
int |
indexOf(int elem) |
int |
indexOf(int elem,
int startIndex,
int endIndex) |
boolean |
isEmpty() |
int |
lastIndexOf(int elem) |
int |
remove(int index) |
void |
removeRange(int fromIndex,
int toIndex) |
int |
set(int index,
int element) |
void |
setQuick(int index,
int element) |
int |
size() |
void |
sort() |
int [] |
toArray() |
int [] |
toArray(int [] a) |
int [] |
toArray(int startIndex,
int length) |
java.lang.String |
toString() |
void |
trimToSize() |
public IntArrayList(int initialCapacity)
public IntArrayList()
public void trimToSize()
public void ensureCapacity(int minCapacity)
public void fill(int fromIndex, int toIndex, int value)
public void add(int [] values)
public int size()
public boolean isEmpty()
public boolean contains(int elem)
public int indexOf(int elem)
public int indexOf(int elem, int startIndex, int endIndex)
public int lastIndexOf(int elem)
public java.lang.Object clone()
clone
in class java.lang.Object
public int [] toArray()
public int [] toArray(int [] a)
public int [] toArray(int startIndex, int length)
public int get(int index)
public int getQuick(int index)
public int set(int index, int element)
public void setQuick(int index, int element)
public void add(int o)
public void add(int index, int element)
public int remove(int index)
public void clear()
public void removeRange(int fromIndex, int toIndex)
public void copyRange(int fromIndex, int length, int toIndex)
public java.lang.String toString()
toString
in class java.lang.Object
public void sort()