org.openrdf.sesame.sail.util
Class EmptyLiteralIterator

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

public class EmptyLiteralIterator
extends EmptyValueIterator
implements LiteralIterator

A LiteralIterator that contains exactly zero literals.

Version:
$Revision: 1.4.4.2 $

Constructor Summary
EmptyLiteralIterator()
          Creates an EmptyLiteralIterator.
 
Method Summary
 Literal nextLiteral()
          Always throws a NoSuchElementException as there are no results in an EmptyLiteralIterator.
 
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

EmptyLiteralIterator

public EmptyLiteralIterator()
Creates an EmptyLiteralIterator.

Method Detail

nextLiteral

public Literal nextLiteral()
Always throws a NoSuchElementException as there are no results in an EmptyLiteralIterator.

Specified by:
nextLiteral in interface LiteralIterator
Returns:
the next Literal
Throws:
NoSuchElementException - Is always thrown.
See Also:
ValueIterator.next()


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