eRqlEngine API documentation - http://www.wleklinski.de/rdf/

eworks.RDF.model
Class StaticCollectionIterator

java.lang.Object
  extended byeworks.RDF.model.StaticCollectionIterator
All Implemented Interfaces:
Iterator

public class StaticCollectionIterator
extends Object
implements Iterator

An iterator for an instance of StaticCollection.

Version:
1.00 (2003-11-03)
Author:
Fabian Wleklinski (fabian@wleklinski.de)

Constructor Summary
StaticCollectionIterator(StaticCollection collection)
          Creates a new iterator for the given collection.
 
Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 Object next()
          Returns the next element in the iteration.
 void remove()
          Do not call this method, as it throws an UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticCollectionIterator

public StaticCollectionIterator(StaticCollection collection)
Creates a new iterator for the given collection.

Parameters:
collection - The collection to iterate trough.
Method Detail

remove

public void remove()
Do not call this method, as it throws an UnsupportedOperationException. This method is implemented due to the contract with Iterator, but cannot be applied on instances of this class.

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - always.

hasNext

public boolean hasNext()
Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)

Specified by:
hasNext in interface Iterator
Returns:
true if the iterator has more elements.

next

public Object next()
Returns the next element in the iteration.

Specified by:
next in interface Iterator
Returns:
the next element in the iteration.

eRqlEngine API documentation - http://www.wleklinski.de/rdf/