Package org.apache.openjpa.lib.rop
Class AbstractResultList<E>
- java.lang.Object
-
- org.apache.openjpa.lib.rop.AbstractResultList<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>,ResultList<E>,Closeable
- Direct Known Subclasses:
AbstractNonSequentialResultList,AbstractSequentialResultList,ListResultList
public abstract class AbstractResultList<E> extends java.lang.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, java.lang.Object element)booleanadd(java.lang.Object o)booleanaddAll(int index, java.util.Collection<? extends E> c)booleanaddAll(java.util.Collection<? extends E> c)protected voidassertOpen()voidclear()java.lang.ObjectgetUserObject()Get the opaque user object attached to this receiver.Eremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)Eset(int index, java.lang.Object element)voidsetUserObject(java.lang.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.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 void add(int index, java.lang.Object element)- Specified by:
addin interfacejava.util.List<E>
-
add
public boolean add(java.lang.Object o)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)- Specified by:
addAllin interfacejava.util.List<E>
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
set
public E set(int index, java.lang.Object element)
- Specified by:
setin interfacejava.util.List<E>
-
clear
public void clear()
-
assertOpen
protected void assertOpen()
-
getUserObject
public final java.lang.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(java.lang.Object opaque)
Description copied from interface:ResultListSet the opaque user object to this receiver.- Specified by:
setUserObjectin interfaceResultList<E>
-
-