com.sparsity.dex.gdb
Class ValuesIterator

java.lang.Object
  extended by com.sparsity.dex.gdb.ValuesIterator
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<Value>

public class ValuesIterator
extends java.lang.Object
implements java.util.Iterator<Value>, java.io.Closeable

ValuesIterator class.

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

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

Method Summary
 void close()
          Closes the ValuesIterator instance.
 boolean hasNext()
          Gets if there are more elements to traverse.
 boolean isClosed()
          Gets if ValuesIterator instance has been closed or not.
 Value next()
          Gets the next element to traverse.
 void remove()
          Operation not supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

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

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

remove

public void remove()
Operation not supported.

Specified by:
remove in interface java.util.Iterator<Value>

next

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

Specified by:
next in interface java.util.Iterator<Value>
Returns:
The next element.

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:
close()

close

public void close()
Closes the ValuesIterator instance.

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

Specified by:
close in interface java.io.Closeable