Package org.apache.openjpa.lib.rop
Class ListResultList
- java.lang.Object
-
- org.apache.openjpa.lib.rop.AbstractResultList
-
- org.apache.openjpa.lib.rop.ListResultList
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,ResultList
,Closeable
- Direct Known Subclasses:
EagerResultList
public class ListResultList extends AbstractResultList
A basicResultList
implementation that wraps a normal list.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListResultList(java.util.List list)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the list.boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection c)
java.lang.Object
get(int index)
java.util.List
getDelegate()
Return the wrapped list.int
indexOf(java.lang.Object o)
boolean
isClosed()
Returns true if the list has been closed.boolean
isEmpty()
boolean
isProviderOpen()
Returns true if the provider backing this list is open.java.util.Iterator
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator
listIterator()
java.util.ListIterator
listIterator(int index)
int
size()
java.util.List
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
java.lang.Object[]
toArray(java.lang.Object[] a)
java.lang.String
toString()
java.lang.Object
writeReplace()
-
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject
-
-
-
-
Method Detail
-
getDelegate
public java.util.List getDelegate()
Return the wrapped list.
-
isProviderOpen
public boolean isProviderOpen()
Description copied from interface:ResultList
Returns true if the provider backing this list is open.
-
isClosed
public boolean isClosed()
Description copied from interface:ResultList
Returns true if the list has been closed.
-
close
public void close()
Description copied from interface:ResultList
Close the list.
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection c)
-
get
public java.lang.Object get(int index)
-
indexOf
public int indexOf(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator iterator()
-
listIterator
public java.util.ListIterator listIterator()
-
listIterator
public java.util.ListIterator listIterator(int index)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
-
writeReplace
public java.lang.Object writeReplace()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
subList
public java.util.List subList(int fromIndex, int toIndex)
-
-