public class Pagination extends Object
| Modifier and Type | Method and Description |
|---|---|
Integer |
getFirstResultIndex() |
Integer |
getNumberOfItemsPerPage() |
Integer |
getPageNumber() |
boolean |
isOnFirstPage() |
Pagination |
nextPage() |
static Pagination |
of(Integer pageNumber,
Integer numberOfItemsPerPage) |
Pagination |
previousPage() |
Pagination |
withNumberOfItemsPerPage(Integer numberOfItemsPerPage) |
public static Pagination of(Integer pageNumber, Integer numberOfItemsPerPage)
pageNumber - null to retrieve all itemsnumberOfItemsPerPage - null to retrieve all itemspublic Integer getNumberOfItemsPerPage()
public Integer getFirstResultIndex()
public Integer getPageNumber()
public Pagination nextPage()
public Pagination previousPage()
public Pagination withNumberOfItemsPerPage(Integer numberOfItemsPerPage)
public boolean isOnFirstPage()
Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.