Package com.ibatis.common.util
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.Instantiates a new paginated array list.PaginatedArrayList(int initialCapacity, int pageSize) Deprecated.Constructor to set the initial size and the page size.PaginatedArrayList(Collection c, int pageSize) Deprecated.Constructor to create an instance using an existing collection. -
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.Returns the current page index, which is a zero based integer.intDeprecated.Returns the maximum number of items per page.voidgotoPage(int pageNumber) Deprecated.Moves to a specified page.intDeprecated.booleanisEmpty()Deprecated.booleanDeprecated.Is the current page the first page?.booleanDeprecated.Is the current page the last page?.booleanDeprecated.Is the current page a middle page (ie not first or last)?.booleanDeprecated.Is a page available after the current page?.booleanDeprecated.Is a page available before the current page?.iterator()Deprecated.intDeprecated.Deprecated.listIterator(int index) Deprecated.booleannextPage()Deprecated.Moves to the next page after the current page.booleanDeprecated.Moves to the page before the current page.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
PaginatedArrayList
public PaginatedArrayList(int pageSize) Deprecated.Instantiates a new paginated array list.- Parameters:
pageSize- the page size
-
PaginatedArrayList
public PaginatedArrayList(int initialCapacity, int pageSize) 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
public int size()Deprecated.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
Deprecated.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
-
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
-
containsAll
Deprecated.- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
get
-
indexOf
-
lastIndexOf
-
listIterator
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
subList
-
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
-
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()Deprecated.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
set
-
add
-
remove
-
getPageSize
public int 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
public boolean 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
public boolean 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
public boolean 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
public boolean 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
public boolean 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
public boolean 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
public boolean 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
public void gotoPage(int pageNumber) 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
public int 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
-