@NotThreadSafe public static final class Paging.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Paging |
build()
Builds a new
Paging. |
Paging.Builder |
from(PagingIF instance)
Fill a builder with attribute values from the provided
PagingIF instance. |
Paging.Builder |
setCount(int count)
Initializes the value for the
count attribute. |
Paging.Builder |
setPage(int page)
Initializes the value for the
page attribute. |
Paging.Builder |
setPages(int pages)
Initializes the value for the
pages attribute. |
Paging.Builder |
setTotal(int total)
Initializes the value for the
total attribute. |
public final Paging.Builder from(PagingIF instance)
PagingIF instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Paging.Builder setCount(int count)
count attribute.count - The value for countthis builder for use in a chained invocationpublic final Paging.Builder setTotal(int total)
total attribute.total - The value for totalthis builder for use in a chained invocationpublic final Paging.Builder setPage(int page)
page attribute.page - The value for pagethis builder for use in a chained invocationpublic final Paging.Builder setPages(int pages)
pages attribute.pages - The value for pagesthis builder for use in a chained invocationCopyright © 2019. All rights reserved.