E - the type of the objects contained in this pagepublic class ObjectPage<E> extends Object
eu.dnetlib.api.functionality.NotificationService,
eu.dnetlib.api.functionality.AlertService| Constructor and Description |
|---|
ObjectPage()
Construct a new object page with page number, page size and total objects set to zero and objects set to null.
|
ObjectPage(int pageNumber,
int pageSize,
int totalObjects,
SortedSet<E> objects)
Construct a new object page.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFrom()
Get the first object.
|
SortedSet<E> |
getObjects()
Get the objects.
|
int |
getPageNumber()
Get the page number.
|
int |
getPageSize()
Get the page size.
|
int |
getTo()
Get the last object.
|
int |
getTotalObjects()
Get the total objects.
|
int |
getTotalPages()
Get the total pages.
|
void |
setObjects(SortedSet<E> objects)
Set the objects.
|
void |
setPageNumber(int pageNumber)
Set the page number.
|
void |
setPageSize(int pageSize)
Set the page size.
|
void |
setTotalObjects(int totalObjects)
Set the total objects.
|
String |
toString() |
public ObjectPage(int pageNumber,
int pageSize,
int totalObjects,
SortedSet<E> objects)
pageNumber - the number of this pagepageSize - the size of this pagetotalObjects - the total number of available objectsobjects - the objects contained in this pagepublic ObjectPage()
public int getPageNumber()
public void setPageNumber(int pageNumber)
pageNumber - the page number of this object pagepublic int getPageSize()
public void setPageSize(int pageSize)
pageSize - the page size of this object pagepublic int getTotalObjects()
public void setTotalObjects(int totalObjects)
totalObjects - the total objects of this pagepublic void setObjects(SortedSet<E> objects)
objects - the objects of this pagepublic int getFrom()
public int getTo()
public int getTotalPages()
Copyright © 2017. All rights reserved.