Class 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 Detail

      • m_iterPage

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

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

      • PagedIterator

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

      • 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