T
- the generic typepublic class Page<T>
extends java.lang.Object
Constructor and Description |
---|
Page()
Instantiates a new page.
|
Page(int totalItems,
int pageIndex,
int pageSize,
int countPages)
Instantiates a new page.
|
Modifier and Type | Method and Description |
---|---|
int |
getCountPages()
Gets the count pages.
|
java.util.List<T> |
getItems()
Gets the items.
|
int |
getPageIndex()
Gets the page index.
|
int |
getPageSize()
Gets the page size.
|
int |
getTotalItems()
Gets the total items.
|
void |
setCountPages(int countPages)
Sets the count pages.
|
void |
setItems(java.util.List<T> items)
Sets the items.
|
void |
setPageIndex(int pageIndex)
Sets the page index.
|
void |
setPageSize(int pageSize)
Sets the page size.
|
void |
setTotalItems(int totalItems)
Sets the total items.
|
java.lang.String |
toString() |
public Page()
public Page(int totalItems, int pageIndex, int pageSize, int countPages)
totalItems
- the total itemspageIndex
- the page indexpageSize
- the page sizecountPages
- the count pagespublic int getTotalItems()
public void setTotalItems(int totalItems)
totalItems
- the new total itemspublic int getPageIndex()
public void setPageIndex(int pageIndex)
pageIndex
- the new page indexpublic int getPageSize()
public void setPageSize(int pageSize)
pageSize
- the new page sizepublic int getCountPages()
public void setCountPages(int countPages)
countPages
- the new count pagespublic java.util.List<T> getItems()
public void setItems(java.util.List<T> items)
items
- the new itemspublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.