public class InMemoryQueryResult extends AbstractList implements QueryResult, Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed
Whether the results are close.
|
modCount
Constructor and Description |
---|
InMemoryQueryResult(List results,
ApiAdapter api) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
add(Object e) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
protected void |
assertIsOpen()
Internal method to throw an Exception if the ResultSet is open.
|
void |
clear() |
void |
close()
Method to close the results, making them unusable thereafter.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
void |
disconnect()
Method to disconnect the results from the ExecutionContext, meaning that thereafter it just behaves like a List.
|
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
equals, hashCode, removeRange
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
replaceAll, sort, spliterator
public InMemoryQueryResult(List results, ApiAdapter api)
public void close()
QueryResult
close
in interface QueryResult
public void disconnect()
QueryResult
disconnect
in interface QueryResult
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
contains
in class AbstractCollection
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface List
containsAll
in class AbstractCollection
public Object get(int index)
get
in interface List
get
in class AbstractList
public int indexOf(Object o)
indexOf
in interface List
indexOf
in class AbstractList
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
isEmpty
in class AbstractCollection
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class AbstractList
public List subList(int fromIndex, int toIndex)
subList
in interface List
subList
in class AbstractList
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public ListIterator listIterator()
listIterator
in interface List
listIterator
in class AbstractList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class AbstractList
protected void assertIsOpen()
public boolean addAll(int index, Collection c)
addAll
in interface List
addAll
in class AbstractList
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public boolean add(Object e)
add
in interface Collection
add
in interface List
add
in class AbstractList
public void add(int index, Object element)
add
in interface List
add
in class AbstractList
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class AbstractList
public Object remove(int index)
remove
in interface List
remove
in class AbstractList
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
Copyright © 2019. All rights reserved.