Class IntArrayList
java.lang.Object
net.thevpc.common.collections.IntArrayList
-
Constructor Summary
ConstructorsConstructorDescriptionIntArrayList(int initialSize) IntArrayList(int[] values) IntArrayList(int[] values, int size) IntArrayList(int[] values, int offset, int size) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int value) voidadd(int index, int value) voidaddAll(int... values) voidaddAll(IntArrayList values) booleancontains(int o) booleancontains(int o, int from) booleancontains(int o, int from, int to) copy()voidensureSize(int size) intget(int index) intvoidgrow(int minCapacity) intindexOf(int o) intindexOf(int o, int from) intindexOf(int o, int from, int to) voidinsertAll(int offset, int... values) intlastIndexOf(int o) intlastIndexOf(int o, int from) intlastIndexOf(int o, int from, int to) intremove(int index) intremoveAll(int offset, int count) voidreplaceSubList(int offset, int count, int... replacement) intset(int index, int element) intsize()subList(int offset, int count) int[]toArray()Integer[]toString()void
-
Constructor Details
-
IntArrayList
public IntArrayList(int initialSize) -
IntArrayList
public IntArrayList() -
IntArrayList
public IntArrayList(int[] values, int offset, int size) -
IntArrayList
public IntArrayList(int[] values) -
IntArrayList
public IntArrayList(int[] values, int size)
-
-
Method Details
-
add
public void add(int index, int value) -
removeAll
public int removeAll(int offset, int count) - Parameters:
offset-count-- Returns:
- number of elements removed
-
remove
public int remove(int index) -
addAll
-
addAll
public void addAll(int... values) -
insertAll
public void insertAll(int offset, int... values) -
subList
-
replaceSubList
public void replaceSubList(int offset, int count, int... replacement) -
add
public void add(int value) -
trimToSize
public void trimToSize() -
copy
-
toArray
public int[] toArray() -
toDoubleArrayList
-
toLongArrayList
-
toIntegerArray
-
toIntegerList
-
size
public int size() -
get
public int get(int index) -
set
public int set(int index, int element) -
indexOf
public int indexOf(int o) -
contains
public boolean contains(int o) -
indexOf
public int indexOf(int o, int from) -
indexOf
public int indexOf(int o, int from, int to) -
contains
public boolean contains(int o, int from) -
contains
public boolean contains(int o, int from, int to) -
lastIndexOf
public int lastIndexOf(int o) -
lastIndexOf
public int lastIndexOf(int o, int from) -
lastIndexOf
public int lastIndexOf(int o, int from, int to) -
toStringDebug
-
getCommittedSize
public int getCommittedSize() -
toString
-
format
-
grow
public void grow(int minCapacity) -
ensureSize
public void ensureSize(int size)
-