com.hp.hpl.jena.util.iterator
Class Map1Iterator

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.NiceIterator
      extended by com.hp.hpl.jena.util.iterator.WrappedIterator
          extended by com.hp.hpl.jena.util.iterator.Map1Iterator
All Implemented Interfaces:
ClosableIterator, ExtendedIterator, Iterator

public class Map1Iterator
extends WrappedIterator
implements ClosableIterator

An iterator that consumes an underlying iterator and maps its results before delivering them; supports remove if the underlying iterator does.

Version:
Release='$Name: $' Revision='$Revision: 1.5 $' Date='$Date: 2004/12/06 13:50:15 $'
Author:
jjc + kers

Constructor Summary
Map1Iterator(Map1 m, Iterator it)
          Construct a list of the converted.
 
Method Summary
 Object next()
          next: defer to the base iterator
 
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator
close, close, create, createNoRemove, hasNext, remove
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, filterDrop, filterKeep, mapWith, removeNext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

Map1Iterator

public Map1Iterator(Map1 m,
                    Iterator it)
Construct a list of the converted.

Parameters:
m - The conversion to apply.
it - the iterator of elements to convert
Method Detail

next

public Object next()
Description copied from class: WrappedIterator
next: defer to the base iterator

Specified by:
next in interface Iterator
Overrides:
next in class WrappedIterator


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP