com.hp.hpl.jena.util.iterator
Class NullIterator<T>

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.NiceIterator<T>
      extended by com.hp.hpl.jena.util.iterator.NullIterator<T>
All Implemented Interfaces:
ClosableIterator<T>, ExtendedIterator<T>, java.util.Iterator<T>

public class NullIterator<T>
extends NiceIterator<T>

An empty iterator. The specialised versions of andThen() eliminate left operands that are empty iterators from cascaded sequences.


Constructor Summary
NullIterator()
           
 
Method Summary
<X extends T>
ExtendedIterator<T>
andThen(java.util.Iterator<X> it)
          make a new iterator, which is us then the other chap.
static
<T> NullIterator<T>
instance()
           
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, hasNext, mapWith, next, remove, removeNext, toList, toSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullIterator

public NullIterator()
Method Detail

instance

public static <T> NullIterator<T> instance()

andThen

public <X extends T> ExtendedIterator<T> andThen(java.util.Iterator<X> it)
Description copied from class: NiceIterator
make a new iterator, which is us then the other chap.

Specified by:
andThen in interface ExtendedIterator<T>
Overrides:
andThen in class NiceIterator<T>


Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP