L - E - public class ListDecorator<L extends java.util.List<E>,E,D extends ElementDecorator<E>>
extends java.lang.Object
implements java.util.List<D>
| Constructor and Description |
|---|
ListDecorator(L list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(D e) |
void |
add(int index,
D element) |
boolean |
addAll(java.util.Collection<? extends D> c) |
boolean |
addAll(int index,
java.util.Collection<? extends D> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
D |
get(int index) |
L |
getList() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<D> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<D> |
listIterator() |
java.util.ListIterator<D> |
listIterator(int index) |
D |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
D |
set(int index,
D element) |
int |
size() |
java.util.List<D> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public ListDecorator(L list)
public boolean add(D e)
add in interface java.util.Collection<D extends ElementDecorator<E>>add in interface java.util.List<D extends ElementDecorator<E>>public void add(int index,
D element)
add in interface java.util.List<D extends ElementDecorator<E>>public boolean addAll(java.util.Collection<? extends D> c)
addAll in interface java.util.Collection<D extends ElementDecorator<E>>addAll in interface java.util.List<D extends ElementDecorator<E>>public boolean addAll(int index,
java.util.Collection<? extends D> c)
addAll in interface java.util.List<D extends ElementDecorator<E>>public void clear()
clear in interface java.util.Collection<D extends ElementDecorator<E>>clear in interface java.util.List<D extends ElementDecorator<E>>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<D extends ElementDecorator<E>>contains in interface java.util.List<D extends ElementDecorator<E>>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<D extends ElementDecorator<E>>containsAll in interface java.util.List<D extends ElementDecorator<E>>public D get(int index)
get in interface java.util.List<D extends ElementDecorator<E>>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<D extends ElementDecorator<E>>public boolean isEmpty()
isEmpty in interface java.util.Collection<D extends ElementDecorator<E>>isEmpty in interface java.util.List<D extends ElementDecorator<E>>public java.util.Iterator<D> iterator()
iterator in interface java.lang.Iterable<D extends ElementDecorator<E>>iterator in interface java.util.Collection<D extends ElementDecorator<E>>iterator in interface java.util.List<D extends ElementDecorator<E>>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<D extends ElementDecorator<E>>public java.util.ListIterator<D> listIterator()
listIterator in interface java.util.List<D extends ElementDecorator<E>>public java.util.ListIterator<D> listIterator(int index)
listIterator in interface java.util.List<D extends ElementDecorator<E>>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<D extends ElementDecorator<E>>remove in interface java.util.List<D extends ElementDecorator<E>>public D remove(int index)
remove in interface java.util.List<D extends ElementDecorator<E>>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<D extends ElementDecorator<E>>removeAll in interface java.util.List<D extends ElementDecorator<E>>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<D extends ElementDecorator<E>>retainAll in interface java.util.List<D extends ElementDecorator<E>>public D set(int index, D element)
set in interface java.util.List<D extends ElementDecorator<E>>public int size()
size in interface java.util.Collection<D extends ElementDecorator<E>>size in interface java.util.List<D extends ElementDecorator<E>>public java.util.List<D> subList(int fromIndex, int toIndex)
subList in interface java.util.List<D extends ElementDecorator<E>>public java.lang.Object[] toArray()
toArray in interface java.util.Collection<D extends ElementDecorator<E>>toArray in interface java.util.List<D extends ElementDecorator<E>>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<D extends ElementDecorator<E>>toArray in interface java.util.List<D extends ElementDecorator<E>>public L getList()