org.jvnet.wom.impl.util
Class Iterators.Map<T,U>

java.lang.Object
  extended by org.jvnet.wom.impl.util.Iterators.Map<T,U>
All Implemented Interfaces:
java.util.Iterator<T>
Enclosing class:
Iterators

public abstract static class Iterators.Map<T,U>
extends java.lang.Object

For each U, apply U->Iterator<T> function and then iterate all the resulting T.


Constructor Summary
protected Iterators.Map(java.util.Iterator<? extends U> core)
           
 
Method Summary
protected abstract  java.util.Iterator<? extends T> apply(U u)
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iterators.Map

protected Iterators.Map(java.util.Iterator<? extends U> core)
Method Detail

hasNext

public boolean hasNext()

next

public T next()

apply

protected abstract java.util.Iterator<? extends T> apply(U u)

remove

public final void remove()
Specified by:
remove in interface java.util.Iterator<T>


Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.