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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the list.boolean
boolean
get
(int index) Return the wrapped list.int
boolean
isClosed()
Returns true if the list has been closed.boolean
isEmpty()
boolean
Returns true if the provider backing this list is open.iterator()
int
listIterator
(int index) int
size()
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, 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 Details
-
ListResultList
Constructor. Supply delegate.
-
-
Method Details
-
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
-
containsAll
-
get
-
indexOf
-
lastIndexOf
-
size
public int size() -
isEmpty
public boolean isEmpty() -
iterator
-
listIterator
-
listIterator
-
toArray
-
toArray
-
writeReplace
-
toString
-
subList
-