Class Concaterator<T>

java.lang.Object
org.moeaframework.util.Concaterator<T>
All Implemented Interfaces:
Iterator<T>

public class Concaterator<T> extends Object implements Iterator<T>
An iterator that produces the concatenation of multiple iterators.
  • Constructor Details

    • Concaterator

      @SafeVarargs public Concaterator(Iterator<T>... iterators)
      Constructs an iterator of the given iterators.
      Parameters:
      iterators - the individual iterators
  • Method Details

    • hasNext

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

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