Class PagedIterator

java.lang.Object
com.tangosol.util.Base
com.tangosol.util.PagedIterator
All Implemented Interfaces:
Iterator

public class PagedIterator extends Base implements Iterator
PagedIterator is an Iterator implementation based on a concept of a page Advancer - a pluggable component that knows how to supply a next page of objects to iterate through. As common to iterators, this implementation is not thread safe.
Since:
Coherence 3.4
Author:
gg 2008.01.25
  • Field Details

    • m_advancer

      protected PagedIterator.Advancer m_advancer
      The underlying Advancer.
    • m_iterPage

      protected Iterator m_iterPage
      An Iterator for the current page.
    • m_oCurr

      protected Object m_oCurr
      Currently "Active" object.
  • Constructor Details

    • PagedIterator

      public PagedIterator(PagedIterator.Advancer advancer)
      Construct a PagedIterator based on the specified Advancer.
      Parameters:
      advancer - the underlying Advancer
  • Method Details

    • remove

      public void remove()
      Removes from the underlying collection the last element returned by the iterator.
      Specified by:
      remove in interface Iterator
    • hasNext

      public boolean hasNext()
      Check whether or not the iterator has more elements.
      Specified by:
      hasNext in interface Iterator
    • next

      public Object next()
      Return the next element in the iteration.
      Specified by:
      next in interface Iterator