Package org.apache.openjpa.lib.rop
Class LazyForwardResultList
- java.lang.Object
-
- org.apache.openjpa.lib.rop.AbstractResultList
-
- org.apache.openjpa.lib.rop.AbstractSequentialResultList
-
- org.apache.openjpa.lib.rop.LazyForwardResultList
-
- All Implemented Interfaces:
Serializable
,Iterable
,Collection
,List
,ResultList
,Closeable
public class LazyForwardResultList extends AbstractSequentialResultList implements ResultList
Lazy forward-only result list.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyForwardResultList(ResultObjectProvider rop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the list.boolean
equals(Object other)
Object
get(int index)
int
hashCode()
boolean
isClosed()
Returns true if the list has been closed.boolean
isProviderOpen()
Returns true if the provider backing this list is open.protected ListIterator
itr(int index)
Implement this method andList.size()
.int
size()
List
subList(int fromIndex, int toIndex)
Object
writeReplace()
-
Methods inherited from class org.apache.openjpa.lib.rop.AbstractSequentialResultList
contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, toArray, toArray
-
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
-
Methods inherited from interface org.apache.openjpa.lib.rop.ResultList
getUserObject, setUserObject
-
-
-
-
Constructor Detail
-
LazyForwardResultList
public LazyForwardResultList(ResultObjectProvider rop)
-
-
Method Detail
-
isProviderOpen
public boolean isProviderOpen()
Description copied from interface:ResultList
Returns true if the provider backing this list is open.- Specified by:
isProviderOpen
in interfaceResultList
-
isClosed
public boolean isClosed()
Description copied from interface:ResultList
Returns true if the list has been closed.- Specified by:
isClosed
in interfaceResultList
-
close
public void close()
Description copied from interface:ResultList
Close the list.- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceResultList
-
get
public Object get(int index)
- Specified by:
get
in interfaceList
- Overrides:
get
in classAbstractSequentialResultList
-
itr
protected ListIterator itr(int index)
Description copied from class:AbstractSequentialResultList
Implement this method andList.size()
.- Specified by:
itr
in classAbstractSequentialResultList
-
size
public int size()
- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceList
-
writeReplace
public Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object other)
-
-