@SuppressWarnings({ "unchecked" }) public class PagedResultList<E> extends Object implements Serializable, 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 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(Collection<? extends E> c) |
|
public boolean |
addAll(int index, Collection<? extends E> c) |
|
public void |
clear() |
|
public boolean |
contains(Object o) |
|
public boolean |
containsAll(Collection<?> c) |
|
public boolean |
equals(Object o) |
|
public E |
get(int i) |
|
public int |
getTotalCount()
|
|
public int |
hashCode() |
|
public int |
indexOf(Object o) |
|
protected void |
initialize() |
|
public boolean |
isEmpty() |
|
public Iterator<E> |
iterator() |
|
public int |
lastIndexOf(Object o) |
|
public ListIterator<E> |
listIterator() |
|
public ListIterator<E> |
listIterator(int index) |
|
public E |
remove(int i) |
|
public boolean |
remove(Object o) |
|
public boolean |
removeAll(Collection<?> c) |
|
public boolean |
retainAll(Collection<?> c) |
|
public E |
set(int i, E o) |
|
public int |
size() |
|
public List<E> |
subList(int fromIndex, int toIndex) |
|
public Object[] |
toArray() |
<T> |
public T[] |
toArray(T[] a) |