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, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize |
PageList
public PageList()
PageList
public PageList(PageControl pageControl)
PageList
public PageList(int totalSize,
PageControl pageControl)
- Used to represent the cardinality of a result set without when the data is not needed
- See Also:
Criteria.Restriction#COUNT_ONLY
PageList
public PageList(Collection<? extends E> collection,
PageControl pageControl)
- Used to represent a result set when the cardinality of the data is not needed
- See Also:
Criteria.Restriction#COLLECTION_ONLY
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-2011 Red Hat, Inc.. All Rights Reserved.