Package org.apache.openjpa.lib.rop
Class AbstractSequentialResultList
- java.lang.Object
-
- org.apache.openjpa.lib.rop.AbstractResultList
-
- org.apache.openjpa.lib.rop.AbstractSequentialResultList
-
- All Implemented Interfaces:
Serializable,Iterable,Collection,List,ResultList,Closeable
- Direct Known Subclasses:
LazyForwardResultList
public abstract class AbstractSequentialResultList extends AbstractResultList
Abstract base class for sequential result lists. Unlike theAbstractSequentialList, this class doesn't rely on theCollection.size()method.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractSequentialResultList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancontains(Object o)booleancontainsAll(Collection c)Objectget(int index)intindexOf(Object o)booleanisEmpty()Iteratoriterator()protected abstract ListIteratoritr(int index)Implement this method andList.size().intlastIndexOf(Object o)ListIteratorlistIterator()ListIteratorlistIterator(int index)Object[]toArray()Object[]toArray(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.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, size, sort, spliterator, subList
-
Methods inherited from interface org.apache.openjpa.lib.rop.ResultList
close, isClosed, isProviderOpen
-
-
-
-
Method Detail
-
itr
protected abstract ListIterator itr(int index)
Implement this method andList.size().
-
contains
public boolean contains(Object o)
-
containsAll
public boolean containsAll(Collection c)
-
get
public Object get(int index)
-
indexOf
public int indexOf(Object o)
-
lastIndexOf
public int lastIndexOf(Object o)
-
isEmpty
public boolean isEmpty()
-
iterator
public Iterator iterator()
-
listIterator
public ListIterator listIterator()
-
listIterator
public ListIterator listIterator(int index)
-
toArray
public Object[] toArray()
-
-