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 voidadd(int index, Object element)booleanadd(Object o)booleanaddAll(int index, Collection<? extends E> c)booleanaddAll(Collection<? extends E> c)protected voidassertOpen()voidclear()ObjectgetUserObject()Get the opaque user object attached to this receiver.Eremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Eset(int index, Object element)voidsetUserObject(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:ResultListGet the opaque user object attached to this receiver.- Specified by:
getUserObjectin interfaceResultList<E>
-
setUserObject
public final void setUserObject(Object opaque)
Description copied from interface:ResultListSet the opaque user object to this receiver.- Specified by:
setUserObjectin interfaceResultList<E>
-
-