Package com.atlassian.bamboo.filter
Class Pager<T>
- java.lang.Object
-
- com.atlassian.bamboo.filter.Pager<T>
-
public class Pager<T> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PAGE_SIZE
static String
PAGE_INDEX
static String
PAGE_SIZE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFirstPageUrl()
String
getFirstPageUrl(String... args)
int
getLastPageIndex()
String
getLastPageUrl()
String
getLastPageUrl(String... args)
String
getNextPageUrl()
String
getNextPageUrl(String... args)
Page<T>
getPage()
int
getPageIndex()
int
getPageSize()
String
getPreviousPageUrl()
String
getPreviousPageUrl(String... args)
int
getTotalNumberOfPages()
int
getTotalSize()
boolean
isHasNextPage()
boolean
isHasPreviousPage()
void
setPage(Page<T> page)
void
setPageFromFilteredList(List<T> results, int totalSize)
void
setPageFromList(List<T> results)
void
setPageIndex(int pageIndex)
void
setPageSize(int pageSize)
void
setUrlString(String url)
-
-
-
Field Detail
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE
- See Also:
- Constant Field Values
-
PAGE_INDEX
public static final String PAGE_INDEX
- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final String PAGE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUrlString
public void setUrlString(String url)
-
getFirstPageUrl
public String getFirstPageUrl()
-
getPreviousPageUrl
public String getPreviousPageUrl()
-
getNextPageUrl
public String getNextPageUrl()
-
getLastPageUrl
public String getLastPageUrl()
-
getLastPageIndex
public int getLastPageIndex()
-
getTotalSize
public int getTotalSize()
-
getTotalNumberOfPages
public int getTotalNumberOfPages()
-
isHasNextPage
public boolean isHasNextPage()
-
isHasPreviousPage
public boolean isHasPreviousPage()
-
getPageSize
public int getPageSize()
-
setPageSize
public void setPageSize(int pageSize)
-
getPageIndex
public int getPageIndex()
-
setPageIndex
public void setPageIndex(int pageIndex)
-
-