public class SearchResultLimits extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL_PAGES
Constant to use for
setSelectedPage(int) to indicate a desire to get ALL PAGES. |
private int |
pageSize |
private int |
selectedPage |
Constructor and Description |
---|
SearchResultLimits(int selectedPage) |
SearchResultLimits(int pageSize,
int selectedPage) |
Modifier and Type | Method and Description |
---|---|
int |
getPageSize() |
int |
getSelectedPage() |
void |
setPageSize(int pageSize)
Set page size for maximum # of hits to return per page.
|
void |
setSelectedPage(int selectedPage) |
String |
toString() |
public static final int ALL_PAGES
setSelectedPage(int)
to indicate a desire to get ALL PAGES.
USE WITH CAUTION!!private int pageSize
private int selectedPage
public SearchResultLimits(int selectedPage)
selectedPage
- page selected use -1 for all pagespublic SearchResultLimits(int pageSize, int selectedPage)
pageSize
- number of groupId:artifact per pageselectedPage
- page selected use -1 for all pagespublic int getPageSize()
public void setPageSize(int pageSize)
pageSize
- size of page by # of hits.public int getSelectedPage()
public void setSelectedPage(int selectedPage)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.