Class AttributeListIterator

java.lang.Object
com.sparsity.sparksee.gdb.AttributeListIterator
All Implemented Interfaces:
Iterator<Integer>

public class AttributeListIterator extends Object implements Iterator<Integer>
AttributeList iterator class.

Iterator to traverse all the Sparksee attribute identifier into a AttributeList instance.

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

    • next

      public Integer next()
      See nextAttribute().

      Specified by:
      next in interface Iterator<Integer>
    • getCurrentName

      public String getCurrentName()
      Get the current attribute Name if it's available or an empty string otherwise.

    • hasNext

      public boolean hasNext()
      Gets if there are more elements.

      Specified by:
      hasNext in interface Iterator<Integer>
      Returns:
      TRUE if there are more elements, FALSE otherwise.
    • nextAttribute

      public int nextAttribute()
      Gets the next element.

    • remove

      public void remove()
      Operation not supported.

      Specified by:
      remove in interface Iterator<Integer>
    • getCurrentValue

      public void getCurrentValue(Value value)
      Get the value for the current attribute if it's available or set it Null otherwise.

      Parameters:
      value - [in|out] The Value will be set to the current attribute value or as a Null Value.