com.sparsity.dex.gdb
Class ObjectsIterator

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

public class ObjectsIterator
extends java.lang.Object
implements java.io.Closeable, java.util.Iterator<java.lang.Long>

ObjectsIterator class.

Iterator to traverse all the object identifier into a Objects instance.

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

Method Summary
 void close()
          Closes the ObjectsIterator instance.
 boolean hasNext()
          Gets if there are more elements to traverse.
 boolean isClosed()
          Gets if ObjectsIterator instance has been closed or not.
 java.lang.Long next()
          See nextObject().
 long nextObject()
          Gets the next element.
 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

nextObject

public long nextObject()
Gets the next element.


hasNext

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

Specified by:
hasNext in interface java.util.Iterator<java.lang.Long>
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<java.lang.Long>

next

public java.lang.Long next()
See nextObject().

Specified by:
next in interface java.util.Iterator<java.lang.Long>

isClosed

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

Returns:
TRUE if the ObjectsIterator instance has been closed, FALSE otherwise.
See Also:
close()

close

public void close()
Closes the ObjectsIterator instance.

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

Specified by:
close in interface java.io.Closeable