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
A basic
ResultList implementation that wraps a normal list.- Author:
- Abe White
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the list.booleanbooleanget(int index) Return the wrapped list.intbooleanisClosed()Returns true if the list has been closed.booleanisEmpty()booleanReturns true if the provider backing this list is open.iterator()intlistIterator(int index) intsize()subList(int fromIndex, int toIndex) Object[]toArray()Object[]toString()Methods inherited from class org.apache.openjpa.lib.rop.AbstractResultList
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
ListResultList
Constructor. Supply delegate.
-
-
Method Details
-
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
-
containsAll
-
get
-
indexOf
-
lastIndexOf
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
-
listIterator
-
listIterator
-
toArray
-
toArray
-
writeReplace
-
toString
-
subList
-