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

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.IteratorIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class IteratorIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Given an Iterator that returns Iterator's, this creates an Iterator over the next level values. Similar to list splicing in lisp.

Version:
Release='$Name: Jena-2_6_4 $' Revision='$Revision: 1.1 $' Date='$Date: 2009/06/29 08:55:49 $'
Author:
jjc

Constructor Summary
IteratorIterator(java.util.Iterator<java.util.Iterator<T>> e)
          The first element of this Iterator is the first element of the first non-empty element of e.
 
Method Summary
 boolean hasNext()
          Is there another element in one of the Iterator's still to consider.
 T next()
           
 void remove()
          remove's the element from the underlying Iterator in which it is a member.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorIterator

public IteratorIterator(java.util.Iterator<java.util.Iterator<T>> e)
The first element of this Iterator is the first element of the first non-empty element of e.

Parameters:
e - An Iterator all of whose members are themselves Iterator's.
Method Detail

hasNext

public boolean hasNext()
Is there another element in one of the Iterator's still to consider.

Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
remove's the element from the underlying Iterator in which it is a member.

Specified by:
remove in interface java.util.Iterator<T>


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