Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.util
Class PagedIterator

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.util.PagedIterator

All Implemented Interfaces:
java.util.Iterator

public class PagedIterator
extends Base
implements java.util.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

Nested Class Summary
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.

 

Field Summary
protected  PagedIterator.Advancer m_advancer
          The underlying Advancer.
protected  java.util.Iterator m_iterPage
          An Iterator for the current page.
protected  java.lang.Object m_oCurr
          Currently "Active" object.

 

Constructor Summary
PagedIterator(PagedIterator.Advancer advancer)
          Construct a PagedIterator based on the specified Advancer.

 

Method Summary
 boolean hasNext()
          Check whether or not the iterator has more elements.
 java.lang.Object next()
          Return the next element in the iteration.
 void remove()
          Removes from the underlying collection the last element returned by the iterator.

 

Field Detail

m_advancer

protected PagedIterator.Advancer m_advancer
The underlying Advancer.

m_iterPage

protected java.util.Iterator m_iterPage
An Iterator for the current page.

m_oCurr

protected java.lang.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 java.util.Iterator

hasNext

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

next

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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.