Class Iterators

java.lang.Object
org.opensearch.common.collect.Iterators

public class Iterators extends Object
Iterators utility class.
Opensearch.internal:
  • Constructor Details

    • Iterators

      public Iterators()
  • Method Details

    • concat

      public static <T> Iterator<T> concat(Iterator<? extends T>... iterators)
      Concat iterators
      Type Parameters:
      T - the type of iterator
      Parameters:
      iterators - the iterators to concat
      Returns:
      a new Iterators.ConcatenatedIterator
      Throws:
      NullPointerException - if iterators is null