public class PaginationResult extends Object implements Serializable
Constructor and Description |
---|
PaginationResult(Object[] dataIn,
long totalSizeIn)
Create an object representing a sublist of a dataset.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getData()
Return the array of objects held by this pagination rules, which
is a continuous subset of the full dataset.
|
long |
getTotalSize()
Returns the number of items in the entire result.
|
void |
setData(Object[] dataIn)
Sets the data for this pagination result.
|
void |
setTotalSize(long totalSizeIn)
Sets the total size of this pagination's complete set.
|
public PaginationResult(Object[] dataIn, long totalSizeIn)
dataIn
- is a list of consecutive objects from the dataset.totalSizeIn
- is the total number of matching rows available.public long getTotalSize()
public void setTotalSize(long totalSizeIn)
totalSizeIn
- the total size of objects contained in the complete set.public Object[] getData()
Copyright © 2012–2014 IFREMER. All rights reserved.