@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class PagedResultList extends java.lang.Object
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 |
---|---|---|
|
void |
add(int i, E o) |
|
boolean |
add(E e) |
|
boolean |
addAll(java.util.Collection<? extends E> c) |
|
boolean |
addAll(int index, java.util.Collection<? extends E> c) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
containsAll(java.util.Collection<?> c) |
|
boolean |
equals(java.lang.Object o) |
|
E |
get(int i) |
|
int |
getTotalCount() @return The total number of records for this query |
|
int |
hashCode() |
|
int |
indexOf(java.lang.Object o) |
|
protected void |
initialize() |
|
boolean |
isEmpty() |
|
java.util.Iterator<E> |
iterator() |
|
int |
lastIndexOf(java.lang.Object o) |
|
java.util.ListIterator<E> |
listIterator() |
|
java.util.ListIterator<E> |
listIterator(int index) |
|
E |
remove(int i) |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> c) |
|
boolean |
retainAll(java.util.Collection<?> c) |
|
E |
set(int i, E o) |
|
int |
size() |
|
java.util.List<E> |
subList(int fromIndex, int toIndex) |
|
java.lang.Object[] |
toArray() |
<T> |
T[] |
toArray(T[] a) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |