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 basicResultListimplementation 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 voidclose()Close the list.booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection c)java.lang.Objectget(int index)java.util.ListgetDelegate()Return the wrapped list.intindexOf(java.lang.Object o)booleanisClosed()Returns true if the list has been closed.booleanisEmpty()booleanisProviderOpen()Returns true if the provider backing this list is open.java.util.Iteratoriterator()intlastIndexOf(java.lang.Object o)java.util.ListIteratorlistIterator()java.util.ListIteratorlistIterator(int index)intsize()java.util.ListsubList(int fromIndex, int toIndex)java.lang.Object[]toArray()java.lang.Object[]toArray(java.lang.Object[] a)java.lang.StringtoString()java.lang.ObjectwriteReplace()-
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:ResultListReturns true if the provider backing this list is open.
-
isClosed
public boolean isClosed()
Description copied from interface:ResultListReturns true if the list has been closed.
-
close
public void close()
Description copied from interface:ResultListClose 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:
toStringin classjava.lang.Object
-
subList
public java.util.List subList(int fromIndex, int toIndex)
-
-