Package io.ably.lib.types
Interface PaginatedResult<T>
-
- Type Parameters:
T-
public interface PaginatedResult<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 PaginatedResult<T>current()PaginatedResult<T>first()Perform the given relative querybooleanhasCurrent()booleanhasFirst()booleanhasNext()booleanisLast()T[]items()Get the contents as an array of component typePaginatedResult<T>next()
-
-
-
Method Detail
-
items
T[] items()
Get the contents as an array of component type
-
first
PaginatedResult<T> first() throws AblyException
Perform the given relative query- Throws:
AblyException
-
current
PaginatedResult<T> current() throws AblyException
- Throws:
AblyException
-
next
PaginatedResult<T> next() throws AblyException
- Throws:
AblyException
-
hasFirst
boolean hasFirst()
-
hasCurrent
boolean hasCurrent()
-
hasNext
boolean hasNext()
-
isLast
boolean isLast()
-
-