Package org.fcrepo.search.api
Class PaginationInfo
- java.lang.Object
-
- org.fcrepo.search.api.PaginationInfo
-
public class PaginationInfo extends Object
A data structure representing the pagination information associated with aSearchResult- Author:
- dbernstein
-
-
Constructor Summary
Constructors Constructor Description PaginationInfo()Default constructorPaginationInfo(int maxResults, int offset, int totalResults)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxResults()intgetOffset()intgetTotalResults()
-
-
-
Constructor Detail
-
PaginationInfo
public PaginationInfo()
Default constructor
-
PaginationInfo
public PaginationInfo(int maxResults, int offset, int totalResults)
Constructor- Parameters:
maxResults- max results asked offoffset- offset of the first result itemtotalResults- The total number of results
-
-
Method Detail
-
getMaxResults
public int getMaxResults()
- Returns:
- The max results of the original query
-
getOffset
public int getOffset()
- Returns:
- The offset specified by original query
-
getTotalResults
public int getTotalResults()
- Returns:
- The total number of results for this query.
-
-