T - The type of results.public class Page<T>
extends java.lang.Object
| Constructor and Description |
|---|
Page(ContentItemsListingResponse response,
java.lang.Class<T> tClass) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<T> |
getContent()
Returns the page content as
List. |
Pagination |
getPagination()
Returns the pagination information from the request
|
int |
getSize()
Returns the size of the page.
|
protected java.lang.Class<T> |
getType() |
boolean |
hasContent()
Returns whether the page has content at all.
|
boolean |
hasNext()
Returns if there is a next page.
|
boolean |
hasPrevious()
Returns if there is a previous page.
|
boolean |
isFirst()
Returns whether the current page is the first one.
|
boolean |
isLast()
Returns whether the current page is the last one.
|
public Page(ContentItemsListingResponse response, java.lang.Class<T> tClass)
public int getSize()
public java.util.List<T> getContent()
List.public boolean hasContent()
public boolean isFirst()
public boolean isLast()
public boolean hasNext()
public boolean hasPrevious()
public Pagination getPagination()
protected java.lang.Class<T> getType()