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 void
add(int index, java.lang.Object element)
boolean
add(java.lang.Object o)
boolean
addAll(int index, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
protected void
assertOpen()
void
clear()
java.lang.Object
getUserObject()
Get the opaque user object attached to this receiver.E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
boolean
retainAll(java.util.Collection<?> c)
E
set(int index, java.lang.Object element)
void
setUserObject(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:
add
in 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:
addAll
in 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:
set
in interfacejava.util.List<E>
-
clear
public void clear()
-
assertOpen
protected void assertOpen()
-
getUserObject
public final java.lang.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(java.lang.Object opaque)
Description copied from interface:ResultList
Set the opaque user object to this receiver.- Specified by:
setUserObject
in interfaceResultList<E>
-
-