public class PageableBase extends Object implements Pageable
Pageable.OffsetLimitParameters
Modifier and Type | Method and Description |
---|---|
void |
addOffset(long offsetDiff)
Adds to existing offset, setting offset to zero if it would be negative.
|
void |
copyPagingValues(Pageable pageable)
Utility method to copy paging values.
|
boolean |
equals(Object o) |
int |
getLimit()
Total of rows that are returned.
|
long |
getOffset()
Defines how many items to skip before beginning to return rows.
|
int |
hashCode() |
void |
setLimit(int limit) |
void |
setOffset(long offset) |
String |
toString() |
public int getLimit()
public void setLimit(int limit)
limit
- the non negative limit to setIllegalArgumentException
- if negativepublic long getOffset()
public void setOffset(long offset)
offset
- the non negative offset to setIllegalArgumentException
- if negativepublic void addOffset(long offsetDiff)
offsetDiff
- to be added to existing offset.public void copyPagingValues(Pageable pageable)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.