Class Int32List

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

public class Int32List extends Object implements Iterable<Integer>
Sparksee 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 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

      public Int32List(Collection<Integer> col)
      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

      public Int32ListIterator iterator()
      Gets a new Int32ListIterator.

      Specified by:
      iterator in interface Iterable<Integer>
      Returns:
      Int32ListIterator instance.
    • 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.