Package io.ably.lib.types
Interface AsyncPaginatedResult<T>
-
- Type Parameters:
T-
public interface AsyncPaginatedResult<T>A type that represents a page of results from a paginated query. The response is accompanied by metadata that indicates the relative queries available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcurrent(Callback<AsyncPaginatedResult<T>> callback)voidfirst(Callback<AsyncPaginatedResult<T>> callback)Obtain params required to perform the given relative querybooleanhasCurrent()booleanhasFirst()booleanhasNext()T[]items()Get the contents as an array of component typevoidnext(Callback<AsyncPaginatedResult<T>> callback)
-
-
-
Method Detail
-
items
T[] items()
Get the contents as an array of component type
-
first
void first(Callback<AsyncPaginatedResult<T>> callback)
Obtain params required to perform the given relative query
-
current
void current(Callback<AsyncPaginatedResult<T>> callback)
-
next
void next(Callback<AsyncPaginatedResult<T>> callback)
-
hasFirst
boolean hasFirst()
-
hasCurrent
boolean hasCurrent()
-
hasNext
boolean hasNext()
-
-