org.openrdf.sesame.sail.util
Class SingleResourceIterator

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

public class SingleResourceIterator
extends SingleValueIterator
implements ResourceIterator

A ResourceIterator that contains exactly one Resource.

Version:
$Revision: 1.4.4.2 $

Constructor Summary
SingleResourceIterator(Resource resource)
          Creates a new SingleResourceIterator that will return the supplied resource as its only resource.
 
Method Summary
 Resource nextResource()
          Gets the next Resource.
 
Methods inherited from class org.openrdf.sesame.sail.util.SingleValueIterator
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

SingleResourceIterator

public SingleResourceIterator(Resource resource)
Creates a new SingleResourceIterator that will return the supplied resource as its only resource.

Parameters:
resource - The Resource to return.
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.