org.openrdf.sesame.sail.util
Class EmptyResourceIterator

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

public class EmptyResourceIterator
extends EmptyValueIterator
implements ResourceIterator

A ResourceIterator that contains exactly zero resources.

Version:
$Revision: 1.4.4.2 $

Constructor Summary
EmptyResourceIterator()
          Creates an EmptyResourceIterator.
 
Method Summary
 Resource nextResource()
          Always throws a NoSuchElementException as there are no results in an EmptyResourceIterator.
 
Methods inherited from class org.openrdf.sesame.sail.util.EmptyValueIterator
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

EmptyResourceIterator

public EmptyResourceIterator()
Creates an EmptyResourceIterator.

Method Detail

nextResource

public Resource nextResource()
Always throws a NoSuchElementException as there are no results in an EmptyResourceIterator.

Specified by:
nextResource in interface ResourceIterator
Returns:
the next Resource
Throws:
NoSuchElementException - Is always thrown.
See Also:
ValueIterator.next()


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