com.hp.hpl.mesa.rdf.jena.common.prettywriter
Class IteratorIterator

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.prettywriter.IteratorIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
AddIterator

public class IteratorIterator
extends java.lang.Object
implements java.util.Iterator

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: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/07/04 17:54:02 $'
Author:
jjc

Constructor Summary
IteratorIterator(java.util.Iterator 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.
 java.lang.Object 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 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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

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


Copyright © 2001 Hewlett-Packard. All Rights Reserved.