public class UnmodifiableResultList<T> extends java.util.ArrayList<T> implements ResultList<T>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private long |
totalCount |
Constructor and Description |
---|
UnmodifiableResultList(java.util.List<T> items,
long totalCount) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element)
Not supported.
|
boolean |
add(T o)
Not supported.
|
boolean |
addAll(java.util.Collection<? extends T> c)
Not supported.
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
Not supported.
|
void |
clear()
Not supported.
|
boolean |
containsAll(java.util.Collection<?> c) |
long |
getTotalCount()
Get the total number of items returned by the query, ignoring
any limits set by
Query.setFirstResult(int) and
Query.setMaxResults(int) . |
T |
remove(int index)
Not supported.
|
boolean |
remove(java.lang.Object o)
Not supported.
|
boolean |
removeAll(java.util.Collection<?> c)
Not supported.
|
boolean |
retainAll(java.util.Collection<?> c)
Not supported.
|
T |
set(int index,
T element)
Not supported.
|
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
private final long totalCount
public UnmodifiableResultList(java.util.List<T> items, long totalCount)
public long getTotalCount()
QueryResult
Query.setFirstResult(int)
and
Query.setMaxResults(int)
. If the
Query.setReturnTotalCount(boolean)
hasn't been enabled this method may
not return a correct value.getTotalCount
in interface QueryResult
Query.setReturnTotalCount(boolean)
public boolean add(T o)
public void add(int index, T element)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean addAll(int index, java.util.Collection<? extends T> c)
public void clear()
public boolean containsAll(java.util.Collection<?> c)
public T remove(int index)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)