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, removeRangetoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamreplaceAll, sort, spliteratorpublic InMemoryQueryResult(List results, ApiAdapter api)
public void close()
QueryResultclose in interface QueryResultpublic void disconnect()
QueryResultdisconnect in interface QueryResultpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in class AbstractCollectionpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListcontainsAll in class AbstractCollectionpublic Object get(int index)
get in interface Listget in class AbstractListpublic int indexOf(Object o)
indexOf in interface ListindexOf in class AbstractListpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in class AbstractCollectionpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in class AbstractListpublic List subList(int fromIndex, int toIndex)
subList in interface ListsubList in class AbstractListpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListtoArray in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in class AbstractListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in class AbstractListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in class AbstractListprotected void assertIsOpen()
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractListpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListaddAll in class AbstractCollectionpublic boolean add(Object e)
add in interface Collectionadd in interface Listadd in class AbstractListpublic void add(int index,
Object element)
add in interface Listadd in class AbstractListpublic void clear()
clear in interface Collectionclear in interface Listclear in class AbstractListpublic Object remove(int index)
remove in interface Listremove in class AbstractListpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listremove in class AbstractCollectionpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListremoveAll in class AbstractCollectionpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface ListretainAll in class AbstractCollectionCopyright © 2019. All rights reserved.