org.jfree.layouting.util
public class IntList extends Object implements Serializable, Cloneable
Constructor Summary | |
---|---|
IntList(int capacity)
Creates a new IntList with the given initial capacity. |
Method Summary | |
---|---|
void | add(int value)
Adds the given int value to the list.
|
void | clear()
Clears the list. |
Object | clone() |
int | get(int index)
Returns the value at the given index.
|
int | peek() |
int | pop() |
void | push(int value) |
void | set(int index, int value)
Adds the given int value to the list.
|
int | size()
Returns the number of elements in this list.
|
int[] | toArray()
Copys the list contents into a new array.
|
Parameters: capacity the initial capacity.
Parameters: value the new value to be added.
Parameters: index the index
Returns: the value at the given index
Throws: IndexOutOfBoundsException if the index is greater or equal to the list size or if the index is negative.
Parameters: value the new value to be added.
Returns: the number of elements in the list
Returns: the list contents as array.