Package org.apache.openjpa.lib.rop
Class AbstractResultList<E>
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList<E>
- All Implemented Interfaces:
Serializable
,Iterable<E>
,Collection<E>
,List<E>
,ResultList<E>
,Closeable
- Direct Known Subclasses:
AbstractNonSequentialResultList
,AbstractSequentialResultList
,ListResultList
Abstract base class for read-only result lists.
- Author:
- Abe White
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) protected void
void
clear()
final Object
Get the opaque user object attached to this receiver.remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) final void
setUserObject
(Object opaque) Set the opaque user object to this receiver.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, replaceAll, size, sort, spliterator, subList, toArray, toArray
Methods inherited from interface org.apache.openjpa.lib.rop.ResultList
close, isClosed, isProviderOpen
-
Constructor Details
-
AbstractResultList
public AbstractResultList()
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
clear
public void clear() -
assertOpen
protected void assertOpen() -
getUserObject
Description copied from interface:ResultList
Get the opaque user object attached to this receiver.- Specified by:
getUserObject
in interfaceResultList<E>
-
setUserObject
Description copied from interface:ResultList
Set the opaque user object to this receiver.- Specified by:
setUserObject
in interfaceResultList<E>
-