public class UnsafeWeakList<T>
extends java.util.AbstractCollection<T>
Collection interface which:
WeakReference)#add(T) and iterator().| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<com.intellij.util.containers.UnsafeWeakList.MyReference<T>> |
myList |
| Constructor and Description |
|---|
UnsafeWeakList() |
UnsafeWeakList(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addIfAbsent(T element) |
void |
clear() |
T |
get(int index)
Deprecated.
Since weak references can be collected at any time,
this method considered dangerous, misleading, error-inducing and is not supported.
|
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
int |
size()
Deprecated.
Since weak references can be collected at any time,
this method considered dangerous, misleading, error-inducing and is not supported.
Instead, please use
#add(T) and iterator(). |
java.util.List<T> |
toStrongList() |
contains, containsAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected final java.util.List<com.intellij.util.containers.UnsafeWeakList.MyReference<T>> myList
public UnsafeWeakList()
public UnsafeWeakList(int capacity)
public boolean add(T element)
public boolean addIfAbsent(T element)
public void clear()
public java.util.Iterator<T> iterator()
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean removeAll(java.util.Collection<?> c)
public java.util.List<T> toStrongList()
@Deprecated public int size()
#add(T) and iterator().public boolean isEmpty()
@Deprecated public T get(int index)