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:
java.io.Serializable,java.lang.Iterable,java.util.Collection,java.util.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 voidclose()Close the list.booleanequals(java.lang.Object other)java.lang.Objectget(int index)inthashCode()booleanisClosed()Returns true if the list has been closed.booleanisProviderOpen()Returns true if the provider backing this list is open.protected java.util.ListIteratoritr(int index)Implement this method andList.size().intsize()java.util.ListsubList(int fromIndex, int toIndex)java.lang.ObjectwriteReplace()-
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.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:ResultListReturns true if the provider backing this list is open.- Specified by:
isProviderOpenin interfaceResultList
-
isClosed
public boolean isClosed()
Description copied from interface:ResultListReturns true if the list has been closed.- Specified by:
isClosedin interfaceResultList
-
close
public void close()
Description copied from interface:ResultListClose the list.- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultList
-
get
public java.lang.Object get(int index)
- Specified by:
getin interfacejava.util.List- Overrides:
getin classAbstractSequentialResultList
-
itr
protected java.util.ListIterator itr(int index)
Description copied from class:AbstractSequentialResultListImplement this method andList.size().- Specified by:
itrin classAbstractSequentialResultList
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection- Specified by:
sizein interfacejava.util.List
-
writeReplace
public java.lang.Object writeReplace() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection- Specified by:
hashCodein interfacejava.util.List- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Specified by:
equalsin interfacejava.util.Collection- Specified by:
equalsin interfacejava.util.List- Overrides:
equalsin classjava.lang.Object
-
subList
public java.util.List subList(int fromIndex, int toIndex)- Specified by:
subListin interfacejava.util.List
-
-