Package org.apache.openjpa.lib.rop
Class AbstractNonSequentialResultList
java.lang.Object
org.apache.openjpa.lib.rop.AbstractResultList
org.apache.openjpa.lib.rop.AbstractNonSequentialResultList
- All Implemented Interfaces:
Serializable,Iterable,Collection,List,ResultList,Closeable
- Direct Known Subclasses:
RandomAccessResultList,SimpleResultList,WindowResultList
Abstract base class for random-access result lists. Unlike the
AbstractList, this class doesn't rely on the
Collection.size() method.- Author:
- Abe White
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanget(int index) protected abstract ObjectgetInternal(int index) Implement this method andList.size().intbooleanisEmpty()iterator()intlistIterator(int index) subList(int fromIndex, int toIndex) Object[]toArray()Object[]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, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, size, sort, spliteratorMethods inherited from interface org.apache.openjpa.lib.rop.ResultList
close, isClosed, isProviderOpen
-
Field Details
-
PAST_END
-
-
Constructor Details
-
AbstractNonSequentialResultList
public AbstractNonSequentialResultList()
-
-
Method Details
-
getInternal
Implement this method andList.size(). ReturnPAST_ENDif the index is out of bounds. -
contains
-
containsAll
-
get
-
indexOf
-
lastIndexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
listIterator
-
listIterator
-
toArray
-
toArray
-
subList
-