org.rhq.core.domain.util
Class PageList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.rhq.core.domain.util.PageList<E>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
public class PageList<E>
- extends ArrayList<E>
- implements Serializable
Tracks the result set for a paginated data lookup. Includes the data and the total rows that are available.
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
PageList
public PageList()
PageList
public PageList(PageControl pageControl)
PageList
public PageList(Collection<? extends E> collection,
PageControl pageControl)
PageList
public PageList(Collection<? extends E> collection,
int totalSize,
PageControl pageControl)
getPageControl
public PageControl getPageControl()
setPageControl
public void setPageControl(PageControl pageControl)
getValues
public ArrayList<E> getValues()
setValues
public void setValues(ArrayList<E> values)
getTotalSize
public int getTotalSize()
- Returns the total size of the "master list" that this page is a subset of.
- Returns:
- Value of property listSize.
setTotalSize
public void setTotalSize(int totalSize)
- Sets the total size of the "master list" that this page is a subset of.
- Parameters:
totalSize
- New value of property totalSize.
isUnbounded
public boolean isUnbounded()
setUnbounded
public void setUnbounded(boolean isUnbounded)
toString
public String toString()
- Overrides:
toString
in class AbstractCollection<E>
Copyright © 2008 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.