@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class PagedResultList<E> extends java.lang.Object implements java.io.Serializable, java.util.List
A result list implementation that provides an additional property called 'totalCount' to obtain the total number of records. Useful for pagination.
Modifiers | Name | Description |
---|---|---|
protected java.util.List<E> |
resultList |
|
protected int |
totalCount |
Constructor and description |
---|
PagedResultList(Query query) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
add(int i, E o) |
|
public boolean |
add(E e) |
|
public boolean |
addAll(java.util.Collection<? extends E> c) |
|
public boolean |
addAll(int index, java.util.Collection<? extends E> c) |
|
public void |
clear() |
|
public boolean |
contains(java.lang.Object o) |
|
public boolean |
containsAll(java.util.Collection<?> c) |
|
public boolean |
equals(java.lang.Object o) |
|
public E |
get(int i) |
|
public int |
getTotalCount()
|
|
public int |
hashCode() |
|
public int |
indexOf(java.lang.Object o) |
|
protected void |
initialize() |
|
public boolean |
isEmpty() |
|
public java.util.Iterator<E> |
iterator() |
|
public int |
lastIndexOf(java.lang.Object o) |
|
public java.util.ListIterator<E> |
listIterator() |
|
public java.util.ListIterator<E> |
listIterator(int index) |
|
public E |
remove(int i) |
|
public boolean |
remove(java.lang.Object o) |
|
public boolean |
removeAll(java.util.Collection<?> c) |
|
public boolean |
retainAll(java.util.Collection<?> c) |
|
public E |
set(int i, E o) |
|
public int |
size() |
|
public java.util.List<E> |
subList(int fromIndex, int toIndex) |
|
public java.lang.Object[] |
toArray() |
<T> |
public T[] |
toArray(T[] a) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |