T - The type of the objects contained in a paging object.IModelObject.Builderpublic static final class Paging.Builder<T> extends AbstractModelObject.Builder
Paging instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
Paging<T> |
build() |
Build a model object with the information set in the builder object.
|
Paging.Builder<T> |
setHref(String href) |
The href setter.
|
Paging.Builder<T> |
setItems(T[] items) |
The items setter.
|
Paging.Builder<T> |
setLimit(Integer limit) |
The request limit setter.
|
Paging.Builder<T> |
setNext(String next) |
The next URL setter.
|
Paging.Builder<T> |
setOffset(Integer offset) |
The offset setter.
|
Paging.Builder<T> |
setPrevious(String previous) |
The previous URL setter.
|
Paging.Builder<T> |
setTotal(Integer total) |
The total amount setter.
|
public Paging.Builder<T> setHref(String href)
href - A link to the Web API endpoint returning the full result of the request.Paging.Builder.public Paging.Builder<T> setItems(T[] items)
items - A page of items.Paging.Builder.public Paging.Builder<T> setLimit(Integer limit)
limit - The maximum number of items in the response (as set in the query or by default).Paging.Builder.public Paging.Builder<T> setNext(String next)
next - URL to the next page of items. (null if none)Paging.Builder.public Paging.Builder<T> setOffset(Integer offset)
offset - The offset of the items returned (as set in the query or by default).Paging.Builder.public Paging.Builder<T> setPrevious(String previous)
previous - URL to the previous page of items. (null if none)Paging.Builder.public Paging.Builder<T> setTotal(Integer total)
total - The total number of items available to return.Paging.Builder.public Paging<T> build()
IModelObject.BuilderCopyright © 2019. All rights reserved.