Package net.solarnetwork.domain
Class SimplePagination
java.lang.Object
net.solarnetwork.domain.SimplePagination
- All Implemented Interfaces:
Cloneable
Simple pagination characteristics.
This is designed to support search queries and filters.
- Version:
- 1.1
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetMax()Get the maximum desired results.Get the desired starting offset.getSorts()Get the sort orderings.inthashCode()booleanmatches(List<SortDescriptor> sorts, Integer offset, Integer max) Test if the arguments match the values in this instance.voidSet the maximum results.voidSet the desired starting offset.voidsetSorts(List<SortDescriptor> sorts) Set the sort orderings.
-
Constructor Details
-
SimplePagination
public SimplePagination()
-
-
Method Details
-
matches
Test if the arguments match the values in this instance.- Parameters:
sorts- the sortsoffset- the offsetmax- the max- Returns:
- true if all the arguments match the associated properties in this instance
-
clone
-
hashCode
public int hashCode() -
equals
-
getSorts
Get the sort orderings.- Returns:
- the sorts
-
setSorts
Set the sort orderings.- Parameters:
sorts- the sorts to set
-
getOffset
Get the desired starting offset.- Returns:
- the offset, or null
-
setOffset
Set the desired starting offset.- Parameters:
offset- the offset to set
-
getMax
Get the maximum desired results.- Returns:
- the max, or null for all results
-
setMax
Set the maximum results.- Parameters:
max- the max to set
-