T
- resource typeR
- low level outcome/result typepublic abstract class PageBasedCollection<T,R> extends Object implements Iterable<T>
Constructor and Description |
---|
PageBasedCollection() |
Modifier and Type | Method and Description |
---|---|
abstract Page<T,R> |
firstPage() |
R |
getLastLowLevelResult()
Returns the low-level result last retrieved (for the current page) from
the server side; or null if there has yet no calls to the server.
|
abstract Integer |
getMaxResultSize()
Returns the maximum number of resources to be retrieved in this
collection; or null if there is no limit.
|
IteratorSupport<T,R> |
iterator() |
PageIterable<T,R> |
pages() |
LowLevelResultListener<R> |
registerLowLevelResultListener(LowLevelResultListener<R> listener)
Used to register a listener for the event of receiving a low-level result
from the server side.
|
protected void |
setLastLowLevelResult(R lowLevelResult)
Internal method used by the implementation layer for setting
the low level result received from the server side.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public PageIterable<T,R> pages()
public abstract Integer getMaxResultSize()
public R getLastLowLevelResult()
protected void setLastLowLevelResult(R lowLevelResult)
public LowLevelResultListener<R> registerLowLevelResultListener(LowLevelResultListener<R> listener)
listener
- listener to be registered. If null, a "none" listener will be
set.Copyright © 2017. All rights reserved.