com.sun.xml.xsom.impl.scd
Class Iterators.Map<T,U>

java.lang.Object
  extended by com.sun.xml.xsom.impl.scd.Iterators.Map<T,U>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
Iterators

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

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


Constructor Summary
protected Iterators.Map(Iterator<? extends U> core)
           
 
Method Summary
protected abstract  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(Iterator<? extends U> core)
Method Detail

hasNext

public boolean hasNext()

next

public T next()

apply

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

remove

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


Copyright © 2012 Oracle. All Rights Reserved.