Class PaginatedArrayList

java.lang.Object
com.ibatis.common.util.PaginatedArrayList
All Implemented Interfaces:
PaginatedList, Iterable, Collection, List

public class PaginatedArrayList extends Object implements PaginatedList
Deprecated.
All paginated list features have been deprecated
Implementation of PaginatedList backed by an ArrayList.
  • 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 size
      pageSize - - the page size
    • PaginatedArrayList

      public PaginatedArrayList(Collection c, int pageSize)
      Deprecated.
      Constructor to create an instance using an existing collection.
      Parameters:
      c - - the collection to build the instance with
      pageSize - - the page size
  • Method Details

    • size

      public int size()
      Deprecated.
      Specified by:
      size in interface Collection
      Specified by:
      size in interface List
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Specified by:
      isEmpty in interface Collection
      Specified by:
      isEmpty in interface List
    • contains

      public boolean contains(Object o)
      Deprecated.
      Specified by:
      contains in interface Collection
      Specified by:
      contains in interface List
    • iterator

      public Iterator iterator()
      Deprecated.
      Specified by:
      iterator in interface Collection
      Specified by:
      iterator in interface Iterable
      Specified by:
      iterator in interface List
    • toArray

      public Object[] toArray()
      Deprecated.
      Specified by:
      toArray in interface Collection
      Specified by:
      toArray in interface List
    • toArray

      public Object[] toArray(Object[] a)
      Deprecated.
      Specified by:
      toArray in interface Collection
      Specified by:
      toArray in interface List
    • containsAll

      public boolean containsAll(Collection c)
      Deprecated.
      Specified by:
      containsAll in interface Collection
      Specified by:
      containsAll in interface List
    • get

      public Object get(int index)
      Deprecated.
      Specified by:
      get in interface List
    • indexOf

      public int indexOf(Object o)
      Deprecated.
      Specified by:
      indexOf in interface List
    • lastIndexOf

      public int lastIndexOf(Object o)
      Deprecated.
      Specified by:
      lastIndexOf in interface List
    • listIterator

      public ListIterator listIterator()
      Deprecated.
      Specified by:
      listIterator in interface List
    • listIterator

      public ListIterator listIterator(int index)
      Deprecated.
      Specified by:
      listIterator in interface List
    • subList

      public List subList(int fromIndex, int toIndex)
      Deprecated.
      Specified by:
      subList in interface List
    • add

      public boolean add(Object o)
      Deprecated.
      Specified by:
      add in interface Collection
      Specified by:
      add in interface List
    • remove

      public boolean remove(Object o)
      Deprecated.
      Specified by:
      remove in interface Collection
      Specified by:
      remove in interface List
    • addAll

      public boolean addAll(Collection c)
      Deprecated.
      Specified by:
      addAll in interface Collection
      Specified by:
      addAll in interface List
    • addAll

      public boolean addAll(int index, Collection c)
      Deprecated.
      Specified by:
      addAll in interface List
    • removeAll

      public boolean removeAll(Collection c)
      Deprecated.
      Specified by:
      removeAll in interface Collection
      Specified by:
      removeAll in interface List
    • retainAll

      public boolean retainAll(Collection c)
      Deprecated.
      Specified by:
      retainAll in interface Collection
      Specified by:
      retainAll in interface List
    • clear

      public void clear()
      Deprecated.
      Specified by:
      clear in interface Collection
      Specified by:
      clear in interface List
    • set

      public Object set(int index, Object element)
      Deprecated.
      Specified by:
      set in interface List
    • add

      public void add(int index, Object element)
      Deprecated.
      Specified by:
      add in interface List
    • remove

      public Object remove(int index)
      Deprecated.
      Specified by:
      remove in interface List
    • getPageSize

      public int getPageSize()
      Deprecated.
      Description copied from interface: PaginatedList
      Returns the maximum number of items per page.
      Specified by:
      getPageSize in interface PaginatedList
      Returns:
      The maximum number of items per page.
    • isFirstPage

      public boolean isFirstPage()
      Deprecated.
      Description copied from interface: PaginatedList
      Is the current page the first page?.
      Specified by:
      isFirstPage in interface PaginatedList
      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: PaginatedList
      Is the current page a middle page (ie not first or last)?.
      Specified by:
      isMiddlePage in interface PaginatedList
      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: PaginatedList
      Is the current page the last page?.
      Specified by:
      isLastPage in interface PaginatedList
      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: PaginatedList
      Is a page available after the current page?.
      Specified by:
      isNextPageAvailable in interface PaginatedList
      Returns:
      True if the next page is available
    • isPreviousPageAvailable

      public boolean isPreviousPageAvailable()
      Deprecated.
      Description copied from interface: PaginatedList
      Is a page available before the current page?.
      Specified by:
      isPreviousPageAvailable in interface PaginatedList
      Returns:
      True if the previous page is available
    • nextPage

      public boolean nextPage()
      Deprecated.
      Description copied from interface: PaginatedList
      Moves to the next page after the current page. If the current page is the last page, wrap to the first page.
      Specified by:
      nextPage in interface PaginatedList
      Returns:
      True if the page changed
    • previousPage

      public boolean previousPage()
      Deprecated.
      Description copied from interface: PaginatedList
      Moves to the page before the current page. If the current page is the first page, wrap to the last page.
      Specified by:
      previousPage in interface PaginatedList
      Returns:
      True if the page changed
    • gotoPage

      public void gotoPage(int pageNumber)
      Deprecated.
      Description copied from interface: PaginatedList
      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.
      Specified by:
      gotoPage in interface PaginatedList
      Parameters:
      pageNumber - The page to go to
    • getPageIndex

      public int getPageIndex()
      Deprecated.
      Description copied from interface: PaginatedList
      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).
      Specified by:
      getPageIndex in interface PaginatedList
      Returns:
      The current page