T - public interface AsyncPaginatedResult<T>
| Modifier and Type | Method and Description |
|---|---|
void |
current(Callback<AsyncPaginatedResult<T>> callback)
Returns a new PaginatedResult for the current page of results.
|
void |
first(Callback<AsyncPaginatedResult<T>> callback)
Returns a new PaginatedResult for the first page of results.
|
boolean |
hasCurrent() |
boolean |
hasFirst() |
boolean |
hasNext()
Returns true if there are more pages available by calling next and returns false if this page is the last page available.
|
T[] |
items()
Contains the current page of results; for example, an array of
Message or PresenceMessage
objects for a channel history request. |
void |
next(Callback<AsyncPaginatedResult<T>> callback)
Returns a new PaginatedResult loaded with the next page of results.
|
T[] items()
Message or PresenceMessage
objects for a channel history request.
Spec: TG3
void first(Callback<AsyncPaginatedResult<T>> callback)
Spec: TG5
void current(Callback<AsyncPaginatedResult<T>> callback)
Spec: TG5
void next(Callback<AsyncPaginatedResult<T>> callback)
Spec: TG4
boolean hasFirst()
boolean hasCurrent()
boolean hasNext()
Spec: TG6