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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
get
(int index) protected abstract Object
getInternal
(int index) Implement this method andList.size()
.int
boolean
isEmpty()
iterator()
int
listIterator
(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, setUserObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, size, sort, spliterator
Methods 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_END
if the index is out of bounds. -
contains
-
containsAll
-
get
-
indexOf
-
lastIndexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
listIterator
-
listIterator
-
toArray
-
toArray
-
subList
-