public class Int32List
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>
It stores a 32-bit signed integer list.
Use Int32ListIterator to access all elements into this collection.
Constructor and Description |
---|
Int32List()
Constructor.
|
Int32List(java.util.Collection<java.lang.Integer> col)
Creates a new instance from an integer collection.
|
Int32List(int[] list)
Creates a new instance from an integer array.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int value)
Adds an 32-bit signed integer at the end of the list.
|
void |
clear()
Clears the list.
|
int |
count()
Number of elements in the list.
|
Int32ListIterator |
iterator()
Gets a new Int32ListIterator.
|
public Int32List(int[] list)
list
- Integer array to initialize the instance.public Int32List()
This creates an empty list.
public Int32List(java.util.Collection<java.lang.Integer> col)
col
- Collection to initialize the instance.public void clear()
public Int32ListIterator iterator()
iterator
in interface java.lang.Iterable<java.lang.Integer>
public void add(int value)
value
- [in] The integer.public int count()