Class PaginatedArrayList
java.lang.Object
com.ibatis.common.util.PaginatedArrayList
- All Implemented Interfaces:
PaginatedList, Iterable, Collection, List
Deprecated.
All paginated list features have been deprecated
Implementation of PaginatedList backed by an ArrayList.
-
Constructor Summary
ConstructorsConstructorDescriptionPaginatedArrayList(int pageSize) Deprecated.PaginatedArrayList(int initialCapacity, int pageSize) Deprecated.PaginatedArrayList(Collection c, int pageSize) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.booleanaddAll(int index, Collection c) Deprecated.booleanaddAll(Collection c) Deprecated.voidclear()Deprecated.booleanDeprecated.booleanDeprecated.get(int index) Deprecated.intDeprecated.intDeprecated.voidgotoPage(int pageNumber) Deprecated.intDeprecated.booleanisEmpty()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.iterator()Deprecated.intDeprecated.Deprecated.listIterator(int index) Deprecated.booleannextPage()Deprecated.booleanDeprecated.remove(int index) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Deprecated.intsize()Deprecated.subList(int fromIndex, int toIndex) Deprecated.Object[]toArray()Deprecated.Object[]Deprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
PaginatedArrayList
Deprecated.Instantiates a new paginated array list.- Parameters:
pageSize- the page size
-
PaginatedArrayList
Deprecated.Constructor to set the initial size and the page size.- Parameters:
initialCapacity- - the initial sizepageSize- - the page size
-
PaginatedArrayList
Deprecated.Constructor to create an instance using an existing collection.- Parameters:
c- - the collection to build the instance withpageSize- - the page size
-
-
Method Details
-
size
Deprecated.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
Deprecated.- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
Deprecated.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
Deprecated. -
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
containsAll
Deprecated.- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
get
-
indexOf
-
lastIndexOf
Deprecated.- Specified by:
lastIndexOfin interfaceList
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
subList
Deprecated. -
add
Deprecated.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
Deprecated.- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
addAll
Deprecated.- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
Deprecated. -
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
Deprecated.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
set
Deprecated. -
add
Deprecated. -
remove
-
getPageSize
Deprecated.Description copied from interface:PaginatedListReturns the maximum number of items per page.- Specified by:
getPageSizein interfacePaginatedList- Returns:
- The maximum number of items per page.
-
isFirstPage
Deprecated.Description copied from interface:PaginatedListIs the current page the first page?.- Specified by:
isFirstPagein interfacePaginatedList- Returns:
- True if the current page is the first page or if only a single page exists.
-
isMiddlePage
Deprecated.Description copied from interface:PaginatedListIs the current page a middle page (ie not first or last)?.- Specified by:
isMiddlePagein interfacePaginatedList- 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
Deprecated.Description copied from interface:PaginatedListIs the current page the last page?.- Specified by:
isLastPagein interfacePaginatedList- Returns:
- True if the current page is the last page or if only a single page exists.
-
isNextPageAvailable
Deprecated.Description copied from interface:PaginatedListIs a page available after the current page?.- Specified by:
isNextPageAvailablein interfacePaginatedList- Returns:
- True if the next page is available
-
isPreviousPageAvailable
Deprecated.Description copied from interface:PaginatedListIs a page available before the current page?.- Specified by:
isPreviousPageAvailablein interfacePaginatedList- Returns:
- True if the previous page is available
-
nextPage
Deprecated.Description copied from interface:PaginatedListMoves to the next page after the current page. If the current page is the last page, wrap to the first page.- Specified by:
nextPagein interfacePaginatedList- Returns:
- True if the page changed
-
previousPage
Deprecated.Description copied from interface:PaginatedListMoves to the page before the current page. If the current page is the first page, wrap to the last page.- Specified by:
previousPagein interfacePaginatedList- Returns:
- True if the page changed
-
gotoPage
Deprecated.Description copied from interface:PaginatedListMoves 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.- Specified by:
gotoPagein interfacePaginatedList- Parameters:
pageNumber- The page to go to
-
getPageIndex
Deprecated.Description copied from interface:PaginatedListReturns 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).- Specified by:
getPageIndexin interfacePaginatedList- Returns:
- The current page
-