E - element type of this listW - element type of the wrapped listpublic class ConvertedList<E,W> extends AbstractList<E>
modCount| Constructor and Description |
|---|
ConvertedList(List<W> list,
Converter<E,W> converter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
E elem) |
boolean |
addAll(int index,
Collection<? extends E> elems) |
void |
clear() |
boolean |
contains(Object obj) |
E |
get(int index) |
Converter<E,W> |
getConverter() |
int |
indexOf(Object obj) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object obj) |
E |
remove(int index) |
protected void |
removeRange(int min,
int max) |
E |
set(int index,
E elem) |
int |
size() |
List<E> |
subList(int min,
int max) |
add, equals, hashCode, listIterator, listIteratoraddAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringpublic E get(int index)
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface List<E>isEmpty in class AbstractCollection<E>public void add(int index,
E elem)
public boolean addAll(int index,
Collection<? extends E> elems)
public boolean contains(Object obj)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public int indexOf(Object obj)
public int lastIndexOf(Object obj)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class AbstractList<E>public E remove(int index)
protected void removeRange(int min,
int max)
removeRange in class AbstractList<E>Copyright © 2016. All rights reserved.