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:
java.io.Serializable
,java.lang.Iterable
,java.util.Collection
,java.util.List
,ResultList
,Closeable
- Direct Known Subclasses:
RandomAccessResultList
,SimpleResultList
,WindowResultList
public abstract class AbstractNonSequentialResultList extends AbstractResultList
Abstract base class for random-access result lists. Unlike theAbstractList
, this class doesn't rely on theCollection.size()
method.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Object
PAST_END
-
Constructor Summary
Constructors Constructor Description AbstractNonSequentialResultList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection c)
java.lang.Object
get(int index)
protected abstract java.lang.Object
getInternal(int index)
Implement this method andList.size()
.int
indexOf(java.lang.Object o)
boolean
isEmpty()
java.util.Iterator
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator
listIterator()
java.util.ListIterator
listIterator(int index)
java.util.List
subList(int fromIndex, int toIndex)
java.lang.Object[]
toArray()
java.lang.Object[]
toArray(java.lang.Object[] a)
-
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.List
equals, hashCode, replaceAll, size, sort, spliterator
-
Methods inherited from interface org.apache.openjpa.lib.rop.ResultList
close, isClosed, isProviderOpen
-
-
-
-
Method Detail
-
getInternal
protected abstract java.lang.Object getInternal(int index)
Implement this method andList.size()
. ReturnPAST_END
if the index is out of bounds.
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection c)
-
get
public java.lang.Object get(int index)
-
indexOf
public int indexOf(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator iterator()
-
listIterator
public java.util.ListIterator listIterator()
-
listIterator
public java.util.ListIterator listIterator(int index)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
-
subList
public java.util.List subList(int fromIndex, int toIndex)
-
-