public class PageDefinition extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OFFSET |
static int |
DEFAULT_PAGE_SIZE |
Constructor and Description |
---|
PageDefinition()
Default constructor.
|
PageDefinition(int offset,
int pageSize)
Constructs a new paging parameter with the given page offset and number of elements per page.
|
Modifier and Type | Method and Description |
---|---|
int |
getOffset()
Returns the offset in the paged collection.
|
int |
getPageSize()
Returns the maximum number of elements in a page.
|
void |
setOffset(int offset)
Sets the offset in the paged collection.
|
void |
setPageSize(int pageSize)
Sets the maximum number of elements in a page.
|
public static final int DEFAULT_OFFSET
public static final int DEFAULT_PAGE_SIZE
public PageDefinition()
public PageDefinition(int offset, int pageSize)
offset
- the page offsetpageSize
- the number of elements per pagepublic int getPageSize()
public void setPageSize(int pageSize)
pageSize
- the maximum number of elements in the page to setpublic int getOffset()
public void setOffset(int offset)
offset
- the offset in the paged collection to setCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.