public class SimpleResultList extends AbstractNonSequentialResultList
ResultList
designed for use with result
object providers backed by efficient random-access data structures, such
as the ListResultObjectProvider
. This result list does not
perform any caching.PAST_END
Constructor and Description |
---|
SimpleResultList(ResultObjectProvider rop) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the list.
|
Object |
getInternal(int index)
Implement this method and
List.size() . |
boolean |
isClosed()
Returns true if the list has been closed.
|
boolean |
isProviderOpen()
Returns true if the provider backing this list is open.
|
int |
size() |
Object |
writeReplace() |
contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, subList, toArray, toArray
add, add, addAll, addAll, assertOpen, clear, getUserObject, remove, remove, removeAll, retainAll, set, setUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public SimpleResultList(ResultObjectProvider rop)
public boolean isProviderOpen()
ResultList
public boolean isClosed()
ResultList
public void close()
ResultList
public Object getInternal(int index)
AbstractNonSequentialResultList
List.size()
. Return AbstractNonSequentialResultList.PAST_END
if the index is out of bounds.getInternal
in class AbstractNonSequentialResultList
public int size()
public Object writeReplace() throws ObjectStreamException
ObjectStreamException
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.