Package com.ibatis.common.util
Interface PaginatedList
- All Superinterfaces:
Collection
,Iterable
,List
- All Known Implementing Classes:
PaginatedArrayList
,PaginatedDataList
Deprecated.
All paginated list features have been deprecated
Interface for lists that support paging.
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Returns the current page index, which is a zero based integer.int
Deprecated.Returns the maximum number of items per page.void
gotoPage
(int pageNumber) Deprecated.Moves to a specified page.boolean
Deprecated.Is the current page the first page?.boolean
Deprecated.Is the current page the last page?.boolean
Deprecated.Is the current page a middle page (ie not first or last)?.boolean
Deprecated.Is a page available after the current page?.boolean
Deprecated.Is a page available before the current page?.boolean
nextPage()
Deprecated.Moves to the next page after the current page.boolean
Deprecated.Moves to the page before the current page.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
getPageSize
int getPageSize()Deprecated.Returns the maximum number of items per page.- Returns:
- The maximum number of items per page.
-
isFirstPage
boolean isFirstPage()Deprecated.Is the current page the first page?.- Returns:
- True if the current page is the first page or if only a single page exists.
-
isMiddlePage
boolean isMiddlePage()Deprecated.Is the current page a middle page (ie not first or last)?.- Returns:
- True if the current page is not the first or last page, and more than one page exists (always returns false if only a single page exists).
-
isLastPage
boolean isLastPage()Deprecated.Is the current page the last page?.- Returns:
- True if the current page is the last page or if only a single page exists.
-
isNextPageAvailable
boolean isNextPageAvailable()Deprecated.Is a page available after the current page?.- Returns:
- True if the next page is available
-
isPreviousPageAvailable
boolean isPreviousPageAvailable()Deprecated.Is a page available before the current page?.- Returns:
- True if the previous page is available
-
nextPage
boolean nextPage()Deprecated.Moves to the next page after the current page. If the current page is the last page, wrap to the first page.- Returns:
- True if the page changed
-
previousPage
boolean previousPage()Deprecated.Moves to the page before the current page. If the current page is the first page, wrap to the last page.- Returns:
- True if the page changed
-
gotoPage
void gotoPage(int pageNumber) Deprecated.Moves to a specified page. If the specified page is beyond the last page, wrap to the first page. If the specified page is before the first page, wrap to the last page.- Parameters:
pageNumber
- The page to go to
-
getPageIndex
int getPageIndex()Deprecated.Returns the current page index, which is a zero based integer. All paginated list implementations should know what index they are on, even if they don't know the ultimate boundaries (min/max).- Returns:
- The current page
-