
public class OSoftQueryResultList<E> extends Object implements List<E>
WeakHashMap but uses SoftReferences instead of WeakReferences. Once it is detected that some of the records inside list are processed by GC OCommandExecutionException will be thrown.| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
The same as
List.add(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
void |
add(int index,
E element)
The same as
List.add(int, Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
addAll(Collection<? extends E> c)
The same as
List.addAll(Collection) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
addAll(int index,
Collection<? extends E> c)
The same as
List.addAll(int, Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC. |
void |
clear()
The same as
List.clear() but throws OCommandExecutionException if some of items inside the list are collected
by GC. |
boolean |
contains(Object o)
The same as
List.contains(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
containsAll(Collection<?> c)
The same as
List.containsAll(Collection) (Object)} but throws OCommandExecutionException if some of items
inside the list are collected by GC. |
static <T> List<T> |
createResultList(String query) |
boolean |
equals(Object obj) |
E |
get(int index)
The same as
List.get(int) but throws OCommandExecutionException if some of items inside the list are collected
by GC. |
int |
hashCode() |
int |
indexOf(Object o)
The same as
List.indexOf(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
isEmpty()
The same as
List.isEmpty() but throws OCommandExecutionException if some of items inside the list are collected
by GC. |
Iterator<E> |
iterator()
The same as
List.iterator() but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
int |
lastIndexOf(Object o)
The same as
List.lastIndexOf(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
ListIterator<E> |
listIterator()
The same as
List.listIterator() but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
ListIterator<E> |
listIterator(int index)
The same as
List.listIterator(int) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
E |
remove(int index)
The same as
List.remove(int) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
remove(Object o)
The same as
List.remove(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
boolean |
removeAll(Collection<?> c)
The same as
List.removeAll(Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC. |
boolean |
retainAll(Collection<?> c)
The same as
List.retainAll(Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC. |
E |
set(int index,
E element)
The same as
List.set(int, Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
int |
size()
The same as
List.size() but throws OCommandExecutionException if some of items inside the list are collected by
GC. |
void |
sort(Comparator<? super E> comparator)
Sort elements according to passed in comparator, throws
OCommandExecutionException if some of items inside the list are
collected by GC. |
OSoftQueryResultList<E> |
subList(int fromIndex,
int toIndex)
The same as
List.subList(int, int) but throws OCommandExecutionException if some of items inside the list are
collected by GC. |
Object[] |
toArray()
Not supported because may lead to generation of OOM.
|
<T> T[] |
toArray(T[] a)
Not supported because may lead to generation of OOM.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitreplaceAll, spliteratorparallelStream, removeIf, streampublic int size()
List.size() but throws OCommandExecutionException if some of items inside the list are collected by
GC.public boolean isEmpty()
List.isEmpty() but throws OCommandExecutionException if some of items inside the list are collected
by GC.public boolean contains(Object o)
List.contains(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.public Iterator<E> iterator()
List.iterator() but throws OCommandExecutionException if some of items inside the list are
collected by GC. All methods of iterator also check presence of collected items inside of the list and throw OCommandExecutionException if such items are detected.public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
List.add(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.add in interface Collection<E>add in interface List<E>NullPointerException - if passed in value is nullpublic boolean remove(Object o)
List.remove(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.public boolean containsAll(Collection<?> c)
List.containsAll(Collection) (Object)} but throws OCommandExecutionException if some of items
inside the list are collected by GC.containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
List.addAll(Collection) but throws OCommandExecutionException if some of items inside the list are
collected by GC.public boolean addAll(int index,
Collection<? extends E> c)
List.addAll(int, Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC.public boolean removeAll(Collection<?> c)
List.removeAll(Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC.public boolean retainAll(Collection<?> c)
List.retainAll(Collection) but throws OCommandExecutionException if some of items inside the list
are collected by GC.public void clear()
List.clear() but throws OCommandExecutionException if some of items inside the list are collected
by GC.public E get(int index)
List.get(int) but throws OCommandExecutionException if some of items inside the list are collected
by GC.public E set(int index, E element)
List.set(int, Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.set in interface List<E>NullPointerException - if passed in value is nullpublic void add(int index,
E element)
List.add(int, Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.add in interface List<E>NullPointerException - if passed in value equals to nullpublic E remove(int index)
List.remove(int) but throws OCommandExecutionException if some of items inside the list are
collected by GC.public int indexOf(Object o)
List.indexOf(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.indexOf in interface List<E>NullPointerException - if passed in value equals to nullpublic int lastIndexOf(Object o)
List.lastIndexOf(Object) but throws OCommandExecutionException if some of items inside the list are
collected by GC.lastIndexOf in interface List<E>NullPointerException - if argument value is nullpublic ListIterator<E> listIterator()
List.listIterator() but throws OCommandExecutionException if some of items inside the list are
collected by GC. All methods of iterator also check presence of collected items inside of the list and throw OCommandExecutionException if such items are detected.listIterator in interface List<E>public ListIterator<E> listIterator(int index)
List.listIterator(int) but throws OCommandExecutionException if some of items inside the list are
collected by GC. All methods of iterator also check presence of collected items inside of the list and throw OCommandExecutionException if such items are detected.listIterator in interface List<E>public OSoftQueryResultList<E> subList(int fromIndex, int toIndex)
List.subList(int, int) but throws OCommandExecutionException if some of items inside the list are
collected by GC.public void sort(Comparator<? super E> comparator)
OCommandExecutionException if some of items inside the list are
collected by GC. This method is implemented because default method of sorting collections in Java converts List to
array which is not supported by current implementation.public boolean equals(Object obj)
Copyright © 2009–2025 OrientDB. All rights reserved.