hudson.util
Class Iterators.FlattenIterator<U,T>

java.lang.Object
  extended by hudson.util.Iterators.FlattenIterator<U,T>
All Implemented Interfaces:
Iterator<U>
Enclosing class:
Iterators

public abstract static class Iterators.FlattenIterator<U,T>
extends Object
implements Iterator<U>

Produces {A,B,C,D,E,F} from {{A,B},{C},{},{D,E,F}}.


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

Constructor Detail

Iterators.FlattenIterator

protected Iterators.FlattenIterator(Iterator<? extends T> core)

Iterators.FlattenIterator

protected Iterators.FlattenIterator(Iterable<? extends T> core)
Method Detail

expand

protected abstract Iterator<U> expand(T t)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<U>

next

public U next()
Specified by:
next in interface Iterator<U>

remove

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


Copyright © 2004-2013. All Rights Reserved.