|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.p13n.pagination.PagedResultIterator<T>
public class PagedResultIterator<T>
A wrapper around a PagedResult to iterate over the entire contents. This allows the PagedResult to retrieve data in pages (more efficient, usually), while providing a more convenient way to iterate the entire set of results, as this iterator handles the page boundaries for you.
Rules for use:
Constructor Summary | |
---|---|
PagedResultIterator(PagedResult<T> pagedResult)
Construct an iterator around a paged result |
Method Summary | |
---|---|
boolean |
hasNext()
|
Iterator<T> |
iterator()
Return self so that this iterator can also be Iterable |
T |
next()
Return the next item - either on the current page or by skipping to the next page. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PagedResultIterator(PagedResult<T> pagedResult)
pagedResult
- The PagedResult to iterateMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<T>
public T next()
next
in interface Iterator<T>
public void remove()
remove
in interface Iterator<T>
UnsupportedOperationException
- alwayspublic Iterator<T> iterator()
iterator
in interface Iterable<T>
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |