Package org.apache.openjpa.lib.rop
Class WindowResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
org.apache.openjpa.lib.rop.WindowResultList
- All Implemented Interfaces:
Serializable,Iterable,Collection,List,ResultList,Closeable
ResultList implementation that uses a forward-scrolling window of results.
- Author:
- Abe White
- See Also:
-
Field Summary
Fields inherited from class org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
PAST_END -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the list.getInternal(int index) Implement this method andList.size().booleanisClosed()Returns true if the list has been closed.booleanReturns true if the provider backing this list is open.intsize()Methods inherited from class org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
WindowResultList
-
WindowResultList
-
-
Method Details
-
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. -
size
public int size() -
getInternal
Description copied from class:AbstractNonSequentialResultListImplement this method andList.size(). ReturnAbstractNonSequentialResultList.PAST_ENDif the index is out of bounds.- Specified by:
getInternalin classAbstractNonSequentialResultList
-
writeReplace
- Throws:
ObjectStreamException
-