public class BulkArrayList<T> extends Object implements Cloneable
Modifier and Type | Class and Description |
---|---|
static interface |
BulkArrayList.Func<T> |
Constructor and Description |
---|
BulkArrayList(int capacity)
Creates a new IntList with the given initial capacity.
|
BulkArrayList(T[] data,
int increment) |
Modifier and Type | Method and Description |
---|---|
void |
add(T value)
Adds the given int value to the list.
|
void |
clear()
Clears the list.
|
BulkArrayList<T> |
clone()
Creates a copy of this list.
|
void |
foreach(BulkArrayList.Func<T> func) |
void |
foreach(BulkArrayList.Func<T> func,
int start,
int end) |
T |
get(int index)
Returns the value at the given index.
|
void |
remove(int index) |
void |
removeRange(int index,
int count) |
void |
set(int index,
T value)
Adds the given int value to the list.
|
int |
size()
Returns the number of elements in this list.
|
<T> T[] |
toArray(T[] retval)
Copys the list contents into a new array.
|
public BulkArrayList(int capacity)
capacity
- the initial capacity.public BulkArrayList(T[] data, int increment)
public void add(T value)
value
- the new value to be added.public void remove(int index)
public void set(int index, T value)
value
- the new value to be defined.index
- the position of the valur that should be redefined.public void removeRange(int index, int count)
public T get(int index)
index
- the indexIndexOutOfBoundsException
- if the index is greater or equal to the list size or if the index is negative.public void clear()
public int size()
public <T> T[] toArray(T[] retval)
retval
- the array that should receive the contents.public BulkArrayList<T> clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if something went wrong during the cloning.public void foreach(BulkArrayList.Func<T> func)
public void foreach(BulkArrayList.Func<T> func, int start, int end)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.