|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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.AdvancerAdvancer 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_advancerThe underlying Advancer. |
protected Iterator |
m_iterPageAn Iterator for the current page. |
protected Object |
m_oCurrCurrently "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. |
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 Iterator m_iterPage
protected Object m_oCurr
| Constructor Detail |
|---|
public PagedIterator(PagedIterator.Advancer advancer)
advancer - the underlying Advancer| Method Detail |
|---|
public void remove()
remove in interface Iteratorpublic boolean hasNext()
hasNext in interface Iteratorpublic Object next()
Iterator.hasNext() method returns false will return each element in the underlying collection exactly once.next in interface Iterator
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||