Package org.apache.openjpa.lib.rop
Class LazyForwardResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractSequentialResultList
org.apache.openjpa.lib.rop.LazyForwardResultList
- All Implemented Interfaces:
Serializable,Iterable,Collection,List,ResultList,Closeable
Lazy forward-only result list.
- Author:
- Abe White
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the list.booleanget(int index) inthashCode()booleanisClosed()Returns true if the list has been closed.booleanReturns true if the provider backing this list is open.protected ListIteratoritr(int index) Implement this method andList.size().intsize()subList(int fromIndex, int toIndex) Methods inherited from class org.apache.openjpa.lib.rop.AbstractSequentialResultList
contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, toArray, toArrayMethods 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, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArrayMethods inherited from interface org.apache.openjpa.lib.rop.ResultList
getUserObject, setUserObject
-
Constructor Details
-
LazyForwardResultList
-
-
Method Details
-
isProviderOpen
public boolean isProviderOpen()Description copied from interface:ResultListReturns true if the provider backing this list is open.- Specified by:
isProviderOpenin interfaceResultList
-
isClosed
public boolean isClosed()Description copied from interface:ResultListReturns true if the list has been closed.- Specified by:
isClosedin interfaceResultList
-
close
public void close()Description copied from interface:ResultListClose the list.- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultList
-
get
- Specified by:
getin interfaceList- Overrides:
getin classAbstractSequentialResultList
-
itr
Description copied from class:AbstractSequentialResultListImplement this method andList.size().- Specified by:
itrin classAbstractSequentialResultList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
writeReplace
- Throws:
ObjectStreamException
-
hashCode
public int hashCode() -
equals
-
subList
-