E - is the generic type of the elements.public class CollectionList<E> extends ArrayList<E>
| Modifier and Type | Class and Description |
|---|---|
private class |
CollectionList.ListIterator
This inner class implements an
Iterator for this CollectionList. |
| Modifier and Type | Field and Description |
|---|---|
private Collection<E> |
delegate |
private static long |
serialVersionUID |
modCount| Constructor and Description |
|---|
CollectionList(Collection<E> delegate)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> collection) |
Collection<E> |
getDelegate()
This method gets the underlying
Collection that is adapted to appear as List. |
Iterator<E> |
iterator() |
E |
remove(int index) |
boolean |
remove(Object o) |
E |
set(int index,
E element) |
addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streamprivate static final long serialVersionUID
private Collection<E> delegate
public CollectionList(Collection<E> delegate)
delegate - is the Collection to adapt.public Collection<E> getDelegate()
Collection that is adapted to appear as List.public boolean add(E element)
public void add(int index,
E element)
public E remove(int index)
public boolean remove(Object o)
public boolean addAll(Collection<? extends E> collection)
Copyright © 2001–2016 mmm-Team. All rights reserved.