|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.PagedIterator
public class PagedIterator
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.
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 |
---|
protected PagedIterator.Advancer m_advancer
protected java.util.Iterator m_iterPage
protected java.lang.Object m_oCurr
Constructor Detail |
---|
public PagedIterator(PagedIterator.Advancer advancer)
advancer
- the underlying AdvancerMethod Detail |
---|
public void remove()
remove
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
Iterator.hasNext()
method returns false will return each element in the underlying collection exactly once.next
in interface java.util.Iterator
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |