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:
Serializable,Iterable,Collection,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(List list)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the list.booleancontains(Object o)booleancontainsAll(Collection c)Objectget(int index)ListgetDelegate()Return the wrapped list.intindexOf(Object o)booleanisClosed()Returns true if the list has been closed.booleanisEmpty()booleanisProviderOpen()Returns true if the provider backing this list is open.Iteratoriterator()intlastIndexOf(Object o)ListIteratorlistIterator()ListIteratorlistIterator(int index)intsize()ListsubList(int fromIndex, int toIndex)Object[]toArray()Object[]toArray(Object[] a)StringtoString()ObjectwriteReplace()-
Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
ListResultList
public ListResultList(List list)
Constructor. Supply delegate.
-
-
Method Detail
-
getDelegate
public 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(Object o)
-
containsAll
public boolean containsAll(Collection c)
-
get
public Object get(int index)
-
indexOf
public int indexOf(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
iterator
public Iterator iterator()
-
listIterator
public ListIterator listIterator()
-
listIterator
public ListIterator listIterator(int index)
-
toArray
public Object[] toArray()
-
writeReplace
public Object writeReplace()
-
subList
public List subList(int fromIndex, int toIndex)
-
-