Java Virtual Shelf

org.oodb.bdms
Class Iterator

java.lang.Object
  |
  +--org.oodb.bdms.Iterator
All Implemented Interfaces:
Iterator

public final class Iterator
extends Object
implements Iterator

Iterator : an object used to iterate over a set of Dobject. It is made of an iterator over the vendor specific data, and manages to get the owners of these data. Note that it was not a good idea to give the same name to this implementation as the interface name.

Version:
$Id: Iterator.java,v 3.0 2000/08/23 13:15:44 lefevre Exp $
Author:
Jean-Paul Le Fèvre
See Also:
CollectionOp

Field Summary
private  Iterator it
           
 
Constructor Summary
Iterator(Iterator it)
          Creates an iterator on the owners.
 
Method Summary
 boolean hasNext()
          Checks whether there are more elements to be processed.
 Object next()
          Returns the next element in the iteration.
 void remove()
          Removes from the underlying collection the last element returned by the iterator.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

it

private Iterator it
Constructor Detail

Iterator

public Iterator(Iterator it)
Creates an iterator on the owners. This constructor must not be called directly.
Parameters:
it - the iterator on the data.
See Also:
CollectionOp.iterator()
Method Detail

hasNext

public final boolean hasNext()
Checks whether there are more elements to be processed.
Specified by:
hasNext in interface Iterator
Returns:
true if the iteration is not completed.

next

public final Object next()
Returns the next element in the iteration. It retrieves the next data and returns the owner of this data.
Specified by:
next in interface Iterator
Returns:
the next object.

remove

public final void remove()
Removes from the underlying collection the last element returned by the iterator. This operation is not implemented.
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException -  

Java Virtual Shelf