org.openrdf.sesame.sail.util
Class SingleResourceIterator
java.lang.Object
org.openrdf.sesame.sail.util.SingleValueIterator
org.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. |
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.
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.