T
- the model's type@ProviderType
public interface Page<T>
Modifier and Type | Method and Description |
---|---|
java.util.Collection<T> |
getItems()
Returns the page's items.
|
int |
getItemsPerPage()
Returns the number of items the user selected on the page.
|
int |
getLastPageNumber()
Returns the number of the collection's last page.
|
java.util.List<Operation> |
getOperations()
Deprecated.
As of 1.9.0, with no direct replacement
|
int |
getPageNumber()
Returns the page number in the collection.
|
java.util.Optional<Path> |
getPathOptional()
Deprecated.
As of 1.9.0, use
getResource() instead |
Resource |
getResource()
The page's resource.
|
java.lang.String |
getResourceName()
Deprecated.
As of 1.9.0, use
getResource() instead |
int |
getTotalCount()
Returns the total number of elements in the collection.
|
boolean |
hasNext()
Returns
true if another page follows this page in the collection. |
boolean |
hasPrevious()
Returns
true if another page precedes this page in the
collection. |
java.util.Collection<T> getItems()
int getItemsPerPage()
int getLastPageNumber()
@Deprecated java.util.List<Operation> getOperations()
int getPageNumber()
@Deprecated java.util.Optional<Path> getPathOptional()
getResource()
insteadOptional#empty()
otherwise.Optional#empty()
otherwiseResource getResource()
Resource.Paged
or a
Resource.Nested
@Deprecated java.lang.String getResourceName()
getResource()
insteadint getTotalCount()
boolean hasNext()
true
if another page follows this page in the collection.true
if another page follows this page in the collection;
false
otherwiseboolean hasPrevious()
true
if another page precedes this page in the
collection.true
if another page precedes this page in the
collection; false
otherwise