Class ValuesIterator

java.lang.Object
com.sparsity.sparksee.gdb.ValuesIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<Value>

public class ValuesIterator extends Object implements Closeable, Iterator<Value>
Values iterator class.

It allows for traversing all the elements into a Values instance.

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

    • isClosed

      public boolean isClosed()
      Gets if ValuesIterator instance has been closed or not.

      Returns:
      TRUE if the ValuesIterator instance has been closed, FALSE otherwise.
      See Also:
    • next

      public Value next()
      Gets the next element to traverse.

      Specified by:
      next in interface Iterator<Value>
      Returns:
      The next element.
    • hasNext

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

      Specified by:
      hasNext in interface Iterator<Value>
      Returns:
      TRUE if there are more elements to traverse, FALSE otherwise.
    • close

      public void close()
      Closes the ValuesIterator instance.

      It must be called to ensure the integrity of all data.

      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • remove

      public void remove()
      Operation not supported.

      Specified by:
      remove in interface Iterator<Value>