Interface MTIterator<T>

All Superinterfaces:
Iterable<T>, Iterator<T>

public interface MTIterator<T> extends Iterator<T>, Iterable<T>
An iterator used for iterating over MT classes. It differs from an ordinary iterator in that the result set size is known and can be queried with getSize(). However, the actual number of returned objects can differ from the reported size, due to insufficient read privileges or objects being removed from the database during iteration.
Since:
3.0
  • Method Details

    • hasNext

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

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

      int getSize()
    • getPosition

      int getPosition()
    • dispose

      void dispose()
    • stream

      default Stream<T> stream()
    • empty

      static <U> MTIterator<U> empty(Class<U> type)