Package com.atlassian.bamboo.filter
Class Pager<T>
java.lang.Object
com.atlassian.bamboo.filter.Pager<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFirstPageUrl
(String... args) int
getLastPageUrl
(String... args) getNextPageUrl
(String... args) getPage()
int
int
getPreviousPageUrl
(String... args) int
int
boolean
boolean
void
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 Details
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE- See Also:
-
PAGE_INDEX
- See Also:
-
PAGE_SIZE
- See Also:
-
-
Constructor Details
-
Pager
public Pager() -
Pager
public Pager(int pageSize)
-
-
Method Details
-
setPageFromList
-
setPageFromFilteredList
-
setUrlString
-
getFirstPageUrl
-
getFirstPageUrl
-
getPreviousPageUrl
-
getPreviousPageUrl
-
getNextPageUrl
-
getNextPageUrl
-
getLastPageUrl
-
getLastPageUrl
-
getLastPageIndex
public int getLastPageIndex() -
getTotalSize
public int getTotalSize() -
getTotalNumberOfPages
public int getTotalNumberOfPages() -
isHasNextPage
public boolean isHasNextPage() -
isHasPreviousPage
public boolean isHasPreviousPage() -
getPage
-
setPage
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getPageIndex
public int getPageIndex() -
setPageIndex
public void setPageIndex(int pageIndex)
-