Class DataIteratorAdapter<T>

java.lang.Object
com.gigaspaces.datasource.DataIteratorAdapter<T>
All Implemented Interfaces:
DataIterator<T>, Iterator<T>

public class DataIteratorAdapter<T> extends Object implements DataIterator<T>
A simple adapter from Iterator to DataIterator
Since:
9.1.1
Author:
Dan Kilman
  • Constructor Details

    • DataIteratorAdapter

      public DataIteratorAdapter(Iterator<T> iterator)
  • 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>
    • close

      public void close()
      Description copied from interface: DataIterator
      Clean up after any resources associated with this iterator The iterator can be closed even if the iterator wasn't iterated over all of its elements.
      Specified by:
      close in interface DataIterator<T>