Package hudson.util

Class Iterators.FlattenIterator<U,T>

java.lang.Object
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 Details

    • FlattenIterator

      protected FlattenIterator(Iterator<? extends T> core)
    • FlattenIterator

      protected FlattenIterator(Iterable<? extends T> core)
  • Method Details

    • 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>