public class IntArrayList extends java.lang.Object implements java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable, IntIterable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GROW_FACTOR |
static int |
DEFAULT_INITIAL_CAPACITY |
Constructor and Description |
---|
IntArrayList() |
IntArrayList(java.util.Collection c) |
IntArrayList(int capacity) |
IntArrayList(int[] a) |
IntArrayList(int[] a,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(int k) |
void |
add(int index,
int k) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(IntArrayList c) |
boolean |
addAll(int index,
java.util.Collection c) |
boolean |
addAll(int index,
IntArrayList c) |
void |
addElements(int index,
int[] a,
int offset,
int length) |
int |
capacity() |
void |
clear() |
IntArrayList |
clone() |
int |
compareTo(IntArrayList l) |
boolean |
contains(int k) |
int[] |
elements() |
void |
ensureCapacity(int capacity) |
static int[] |
ensureCapacity(int[] array,
int length,
int preserve) |
boolean |
equals(IntArrayList l) |
void |
getElements(int from,
int[] a,
int offset,
int length) |
float |
getGrowFactor() |
int |
getInt(int index) |
static int[] |
grow(int[] array,
int length,
int preserve) |
static int[] |
grow(int[] array,
int length,
int preserve,
float growFactor) |
int |
indexOf(int k) |
boolean |
isEmpty() |
IntIterator |
iterator() |
int |
lastIndexOf(int k) |
boolean |
rem(int k) |
boolean |
removeAll(java.util.Collection c) |
boolean |
removeAll(IntArrayList c) |
int |
removeByIndex(int index) |
void |
removeElements(int from,
int to) |
int |
set(int index,
int k) |
void |
setGrowFactor(float growFactor) |
int |
size() |
void |
size(int size) |
int[] |
toArray(int[] a) |
void |
trim() |
void |
trim(int n) |
void |
trimToSize() |
static IntArrayList |
wrap(int[] a) |
static IntArrayList |
wrap(int[] a,
int length) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, forEach
public static final int DEFAULT_INITIAL_CAPACITY
public static final float DEFAULT_GROW_FACTOR
public IntArrayList(int capacity)
public IntArrayList()
public IntArrayList(int[] a)
public IntArrayList(java.util.Collection c)
public IntArrayList(int[] a, int offset, int length)
public int[] elements()
public static IntArrayList wrap(int[] a, int length)
public static IntArrayList wrap(int[] a)
public void ensureCapacity(int capacity)
public float getGrowFactor()
public void setGrowFactor(float growFactor)
public void add(int index, int k)
public boolean add(int k)
public int getInt(int index)
public int indexOf(int k)
public int lastIndexOf(int k)
public int removeByIndex(int index)
public boolean rem(int k)
public int set(int index, int k)
public void clear()
public int size()
public int capacity()
public void size(int size)
public boolean isEmpty()
public void trim()
public void trim(int n)
public void getElements(int from, int[] a, int offset, int length)
public void removeElements(int from, int to)
public void addElements(int index, int[] a, int offset, int length)
public int[] toArray(int[] a)
public boolean addAll(int index, IntArrayList c)
public boolean addAll(int index, java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean addAll(IntArrayList c)
public boolean removeAll(IntArrayList c)
public boolean removeAll(java.util.Collection c)
public IntArrayList clone()
clone
in class java.lang.Object
public boolean equals(IntArrayList l)
public int compareTo(IntArrayList l)
public boolean contains(int k)
public IntIterator iterator()
iterator
in interface IntIterable
iterator
in interface java.lang.Iterable
public static int[] ensureCapacity(int[] array, int length, int preserve)
public static int[] grow(int[] array, int length, int preserve)
public static int[] grow(int[] array, int length, int preserve, float growFactor)
public void trimToSize()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.