Class PlainIterator<T>

java.lang.Object
org.elasticsearch.common.util.PlainIterator<T>
All Implemented Interfaces:
Iterable<T>, Countable
Direct Known Subclasses:
PlainShardsIterator

public class PlainIterator<T> extends Object implements Iterable<T>, Countable
  • Constructor Details

    • PlainIterator

      public PlainIterator(List<T> elements)
  • Method Details

    • reset

      public void reset()
    • remaining

      public int remaining()
    • nextOrNull

      public T nextOrNull()
    • size

      public int size()
      Specified by:
      size in interface Countable
    • asList

      public List<T> asList()
    • iterator

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