abstract class AbstractResultList<I> extends Object implements ResultList<I>
List
interface that modifies the
list. The implementation simply throws an
UnsupportedOperationException
Modifier and Type | Field and Description |
---|---|
private long |
totalCount |
Constructor and Description |
---|
AbstractResultList(long totalCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(I o)
Not supported.
|
void |
add(int index,
I element)
Not supported.
|
boolean |
addAll(Collection<? extends I> c)
Not supported.
|
boolean |
addAll(int index,
Collection<? extends I> c)
Not supported.
|
void |
clear()
Not supported.
|
boolean |
containsAll(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) . |
I |
remove(int index)
Not supported.
|
boolean |
remove(Object o)
Not supported.
|
boolean |
removeAll(Collection<?> c)
Not supported.
|
boolean |
retainAll(Collection<?> c)
Not supported.
|
I |
set(int index,
I element)
Not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
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(I o)
add
in interface Collection<I>
add
in interface List<I>
UnsupportedOperationException
- Alwayspublic void add(int index, I element)
add
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean addAll(Collection<? extends I> c)
addAll
in interface Collection<I>
addAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean addAll(int index, Collection<? extends I> c)
addAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic void clear()
clear
in interface Collection<I>
clear
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean containsAll(Collection<?> c)
containsAll
in interface Collection<I>
containsAll
in interface List<I>
public I remove(int index)
remove
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean remove(Object o)
remove
in interface Collection<I>
remove
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean removeAll(Collection<?> c)
removeAll
in interface Collection<I>
removeAll
in interface List<I>
UnsupportedOperationException
- Alwayspublic boolean retainAll(Collection<?> c)
retainAll
in interface Collection<I>
retainAll
in interface List<I>
UnsupportedOperationException
- Always