E - Class of element.public class WeakList<E> extends WeakCollectionBase<E> implements List<E>
| Constructor and Description |
|---|
WeakList() |
WeakList(WeakList<E> source)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
add(int index,
E element)
Inserts a weak reference to the specified element at a specified index.
|
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index)
Returns the element referenced at the specified index.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index)
Removes the weak reference at the specified index.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
protected void |
removeReference(Reference<? extends E> reference) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element)
Sets a weak reference to the specified element.
|
int |
size()
Returns the size of the underlying list.
|
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
cast, compact, contains, createWeakReference, getIterator, getReferentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic E remove(int index)
public void add(int index,
E element)
public E get(int index)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>public boolean addAll(Collection<? extends E> c)
public boolean addAll(int index,
Collection<? extends E> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>protected void removeReference(Reference<? extends E> reference)
removeReference in class WeakCollectionBase<E>Copyright © 2018 Regenstrief Center for Biomedical Informatics. All rights reserved.