org.openrdf.sesame.sail.util
Class ResourceCollectionIterator

java.lang.Object
  extended byorg.openrdf.sesame.sail.util.ValueCollectionIterator
      extended byorg.openrdf.sesame.sail.util.ResourceCollectionIterator
All Implemented Interfaces:
ResourceIterator, ValueIterator

public class ResourceCollectionIterator
extends ValueCollectionIterator
implements ResourceIterator

A ResourceIterator that iterates over a Collection of Resource objects.

Version:
$Revision: 1.4.4.2 $

Constructor Summary
ResourceCollectionIterator(Collection resources)
          Creates a new ResourceCollectionIterator that will return all objects from the supplied Collection.
 
Method Summary
 Resource nextResource()
          Gets the next Resource.
 
Methods inherited from class org.openrdf.sesame.sail.util.ValueCollectionIterator
close, hasNext, next
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.sesame.sail.ValueIterator
close, hasNext, next
 

Constructor Detail

ResourceCollectionIterator

public ResourceCollectionIterator(Collection resources)
Creates a new ResourceCollectionIterator that will return all objects from the supplied Collection.

Parameters:
resources - A Collection of Resource objects.
Method Detail

nextResource

public Resource nextResource()
Description copied from interface: ResourceIterator
Gets the next Resource.

Specified by:
nextResource in interface ResourceIterator
Returns:
the next Resource
See Also:
ValueIterator.next()


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.