Interface PagedIterator.Advancer

Enclosing class:
PagedIterator

public static interface PagedIterator.Advancer
Advancer is a pluggable component that knows how to load a new page (Collection) of objects to be used by the enclosing PagedIterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Obtain a new page of objects to be used by the enclosing PagedIterator.
    void
    remove(Object oCurr)
    Remove the specified object from the underlying collection.
  • Method Details

    • nextPage

      Collection nextPage()
      Obtain a new page of objects to be used by the enclosing PagedIterator.
      Returns:
      a Collection of objects or null if the Advancer is exhausted
    • remove

      void remove(Object oCurr)
      Remove the specified object from the underlying collection. Naturally, only an object from the very last non-empty page could be removed.
      Parameters:
      oCurr - currently "active" item to be removed from an underlying collection