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
public abstract class AbstractResultList<E> extends Object implements ResultList<E>
Abstract base class for read-only result lists.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractResultList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Object element)
boolean
add(Object o)
boolean
addAll(int index, Collection<? extends E> c)
boolean
addAll(Collection<? extends E> c)
protected void
assertOpen()
void
clear()
Object
getUserObject()
Get the opaque user object attached to this receiver.E
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
E
set(int index, Object element)
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
-
-
-
-
Method Detail
-
add
public boolean add(Object o)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
remove
public boolean remove(Object o)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
assertOpen
protected void assertOpen()
-
getUserObject
public final Object getUserObject()
Description copied from interface:ResultList
Get the opaque user object attached to this receiver.- Specified by:
getUserObject
in interfaceResultList<E>
-
setUserObject
public final void setUserObject(Object opaque)
Description copied from interface:ResultList
Set the opaque user object to this receiver.- Specified by:
setUserObject
in interfaceResultList<E>
-
-