com.sparsity.dex.gdb
Class Int32List

java.lang.Object
  extended by com.sparsity.dex.gdb.Int32List
All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>

public class Int32List
extends java.lang.Object
implements java.lang.Iterable<java.lang.Integer>

Dex 32-bit signed integer list.

It stores a 32-bit signed integer list.

Use Int32ListIterator to access all elements into this collection.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Int32List

public Int32List(java.util.Collection<java.lang.Integer> col)
Creates a new instance from an integer collection.

Parameters:
col - Collection to initialize the instance.

Int32List

public Int32List()
Constructor.

This creates an empty list.


Int32List

public Int32List(int[] list)
Creates a new instance from an integer array.

Parameters:
list - Integer array to initialize the instance.
Method Detail

add

public void add(int value)
Adds an 32-bit signed integer at the end of the list.

type[in] The integer.

Parameters:
value - null

clear

public void clear()
Clears the list.


iterator

public Int32ListIterator iterator()
Gets a new Int32ListIterator.

Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>
Returns:
Int32ListIterator instance.

count

public int count()
Number of elements in the list.

Returns:
Number of elements in the list.