class ListDelegate<T>
extends java.lang.Object
implements java.util.List<T>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cloned |
private ConvertingImpl |
convertingImpl |
private java.util.List<T> |
delegate |
| Modifier | Constructor and Description |
|---|---|
private |
ListDelegate(java.util.List<T> del,
ConvertingImpl conv) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
void |
clear() |
private void |
cloneDelegate() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object obj) |
(package private) static <T> java.util.List<T> |
forArray(java.lang.Object arr,
ConvertingImpl converting) |
(package private) static <T> java.util.List<T> |
forCollection(java.util.Collection<T> object,
ConvertingImpl converting) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
T |
set(int index,
T element) |
int |
size() |
java.util.List<T> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<X> X[] |
toArray(X[] a) |
java.lang.String |
toString() |
private volatile java.util.List<T> delegate
private volatile boolean cloned
private final ConvertingImpl convertingImpl
private ListDelegate(java.util.List<T> del, ConvertingImpl conv)
static <T> java.util.List<T> forArray(java.lang.Object arr,
ConvertingImpl converting)
static <T> java.util.List<T> forCollection(java.util.Collection<T> object,
ConvertingImpl converting)
private void cloneDelegate()
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
public <X> X[] toArray(X[] a)
public boolean add(T e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends T> c)
public boolean addAll(int index,
java.util.Collection<? extends T> c)
addAll in interface java.util.List<T>public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>public java.util.ListIterator<T> listIterator(int index)
listIterator in interface java.util.List<T>public java.util.List<T> subList(int fromIndex, int toIndex)
subList in interface java.util.List<T>public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString in class java.lang.Object