edu.uga.cs.lsdis.semdisds
Interface IExtendedIterator<T>

All Superinterfaces:
java.lang.Iterable<T>, java.util.Iterator<T>

public interface IExtendedIterator<T>
extends java.lang.Iterable<T>, java.util.Iterator<T>

Extended Iterator that allows for recycling of iterator objects

Author:
Maciek

Method Summary
 void close()
          Closes the iterator and returns it to the pool of available interators Closed iterator cannot be used
 boolean reset()
          Resets iterator (if possible) to its beginning without recreating it.
 int size()
          Returns number of elements in iterator.
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

close

void close()
Closes the iterator and returns it to the pool of available interators Closed iterator cannot be used


size

int size()
Returns number of elements in iterator.

Returns:
size of iterator

reset

boolean reset()
Resets iterator (if possible) to its beginning without recreating it.

Returns:
true - reset OK, false - reset failed