F - the type of elements in the underlying ListT - the type that the elements should be converted topublic static class ConverterCollections.ConverterList<F,T> extends ConverterCollections.ConverterCollection<F,T> implements List<T>, Serializable
m_col, m_convDown, m_convUp| Constructor and Description |
|---|
ConverterList(List<F> list,
Converter<F,T> convUp,
Converter<T,F> convDown)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
addAll(int index,
Collection<? extends T> col) |
boolean |
equals(Object o)
Compares the specified object with this collection for equality.
|
T |
get(int index) |
List<F> |
getList()
Return the underlying List.
|
int |
hashCode() |
int |
indexOf(Object o) |
protected <F,T> List<T> |
instantiateList(List<F> list,
Converter<F,T> convUp,
Converter<T,F> convDown)
Create a Converter List.
|
protected <F,T> ListIterator<T> |
instantiateListIterator(ListIterator<F> iter,
Converter<F,T> convUp,
Converter<T,F> convDown)
Create a Converter ListIterator.
|
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int index) |
T |
remove(int index) |
T |
set(int index,
T element) |
List<T> |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, getCollection, getConverterDown, getConverterUp, instantiateCollection, instantiateIterator, invalidate, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean addAll(int index,
Collection<? extends T> col)
public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int index)
listIterator in interface List<T>public boolean equals(Object o)
Obeys the general contract of Collection.equals.
equals in interface Collection<T>equals in interface List<T>equals in class ConverterCollections.ConverterCollection<F,T>o - Object to be compared for equality with this Collectionpublic int hashCode()
protected <F,T> List<T> instantiateList(List<F> list, Converter<F,T> convUp, Converter<T,F> convDown)
F - the type of elements in the underlying ListT - the type that the elements should be converted tolist - the underlying ListconvUp - the Converter to view the underlying List
throughconvDown - the Converter to pass items down to the underlying
List throughprotected <F,T> ListIterator<T> instantiateListIterator(ListIterator<F> iter, Converter<F,T> convUp, Converter<T,F> convDown)
F - the type of elements in the underlying ListIteratorT - the type that the elements should be converted toiter - the underlying ListIteratorconvUp - the Converter to view the underlying ListIterator
throughconvDown - the Converter to pass items down to the underlying
ListIterator through