Class CoalesceIterator<T>

java.lang.Object
net.thevpc.common.iterators.CoalesceIterator<T>
All Implemented Interfaces:
Iterator<T>

public class CoalesceIterator<T> extends Object implements Iterator<T>
Author:
thevpc
  • Constructor Details

    • CoalesceIterator

      public CoalesceIterator()
  • Method Details

    • addNonNull

      public void addNonNull(Iterator<T> child)
    • addNonEmpty

      public void addNonEmpty(Iterator<T> child)
    • add

      public void add(Iterator<T> child)
    • size

      public int size()
    • getChildren

      public Iterator<T>[] getChildren()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

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

      public String toString()
      Overrides:
      toString in class Object