com.ibatis.common.util
Class PaginatedArrayList

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

Deprecated. All paginated list features have been deprecated

public class PaginatedArrayList
extends Object
implements PaginatedList

Implementation of PaginatedList backed by an ArrayList


Constructor Summary
PaginatedArrayList(Collection c, int pageSize)
          Deprecated. Constructor to create an instance using an existing collection
PaginatedArrayList(int pageSize)
          Deprecated.  
PaginatedArrayList(int initialCapacity, int pageSize)
          Deprecated. Constructor to set the initial size and the page size
 
Method Summary
 void add(int index, Object element)
          Deprecated.  
 boolean add(Object o)
          Deprecated.  
 boolean addAll(Collection c)
          Deprecated.  
 boolean addAll(int index, Collection c)
          Deprecated.  
 void clear()
          Deprecated.  
 boolean contains(Object o)
          Deprecated.  
 boolean containsAll(Collection c)
          Deprecated.  
 Object get(int index)
          Deprecated.  
 int getPageIndex()
          Deprecated. Returns the current page index, which is a zero based integer.
 int getPageSize()
          Deprecated. Returns the maximum number of items per page
 void gotoPage(int pageNumber)
          Deprecated. Moves to a specified page.
 int indexOf(Object o)
          Deprecated.  
 boolean isEmpty()
          Deprecated.  
 boolean isFirstPage()
          Deprecated. Is the current page the first page?
 boolean isLastPage()
          Deprecated. Is the current page the last page?
 boolean isMiddlePage()
          Deprecated. Is the current page a middle page (ie not first or last)?
 boolean isNextPageAvailable()
          Deprecated. Is a page available after the current page?
 boolean isPreviousPageAvailable()
          Deprecated. Is a page available before the current page?
 Iterator iterator()
          Deprecated.  
 int lastIndexOf(Object o)
          Deprecated.  
 ListIterator listIterator()
          Deprecated.  
 ListIterator listIterator(int index)
          Deprecated.  
 boolean nextPage()
          Deprecated. Moves to the next page after the current page.
 boolean previousPage()
          Deprecated. Moves to the page before the current page.
 Object remove(int index)
          Deprecated.  
 boolean remove(Object o)
          Deprecated.  
 boolean removeAll(Collection c)
          Deprecated.  
 boolean retainAll(Collection c)
          Deprecated.  
 Object set(int index, Object element)
          Deprecated.  
 int size()
          Deprecated.  
 List subList(int fromIndex, int toIndex)
          Deprecated.  
 Object[] toArray()
          Deprecated.  
 Object[] toArray(Object[] a)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

PaginatedArrayList

public PaginatedArrayList(int pageSize)
Deprecated. 
Parameters:
pageSize -

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 Detail

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 Iterable
Specified by:
iterator in interface Collection
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


Copyright © 2010. All Rights Reserved.