Class Int32List
java.lang.Object
com.sparsity.sparksee.gdb.Int32List
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Int32List(int[] list) Creates a new instance from an integer array.Int32List(Collection<Integer> col) Creates a new instance from an integer collection. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
Int32List
public Int32List(int[] list) Creates a new instance from an integer array.- Parameters:
list- Integer array to initialize the instance.
-
Int32List
public Int32List()Constructor.This creates an empty list.
-
Int32List
Creates a new instance from an integer collection.- Parameters:
col- Collection to initialize the instance.
-
-
Method Details
-
clear
public void clear()Clears the list. -
iterator
Gets a new Int32ListIterator. -
add
public void add(int value) Adds an 32-bit signed integer at the end of the list.- Parameters:
value- [in] The integer.
-
count
public int count()Number of elements in the list.- Returns:
- Number of elements in the list.
-