-
public interface BasePaginatedResult<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. It works for both sync and async requests. Typically, one of the two options are chosen by wrapping this class to offer a PaginatedResult or AsyncPaginatedResult.
-
-
Method Summary
Modifier and Type Method Description abstract Array<T>items()Get the contents as an array of component type abstract Http.Request<BasePaginatedResult<T>>first()Perform the given relative query abstract Http.Request<BasePaginatedResult<T>>current()abstract Http.Request<BasePaginatedResult<T>>next()abstract booleanhasFirst()abstract booleanhasCurrent()abstract booleanhasNext()abstract booleanisLast()-
-
Method Detail
-
first
abstract Http.Request<BasePaginatedResult<T>> first()
Perform the given relative query
-
current
abstract Http.Request<BasePaginatedResult<T>> current()
-
next
abstract Http.Request<BasePaginatedResult<T>> next()
-
hasFirst
abstract boolean hasFirst()
-
hasCurrent
abstract boolean hasCurrent()
-
hasNext
abstract boolean hasNext()
-
isLast
abstract boolean isLast()
-
-
-
-