Class StreamingIterator<T>

java.lang.Object
org.duracloud.common.collection.StreamingIterator<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterator<T>

public class StreamingIterator<T> extends Object implements Iterator<T>
An {code Iterator} implementation that delegates its underlying data provider to an {code IteratorSource}. It is useful for implementing an iterator that iterates over a collection of items of indeterminate size.
Author:
Daniel Bernstein
  • Constructor Details

  • Method Details

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