|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
net.sf.mmm.util.collection.base.CollectionList<E>
E - is the generic type of the elements.public class CollectionList<E>
This is an implementation of the List interface that adapts
another Collection as delegate.
| Nested Class Summary | |
|---|---|
private class |
CollectionList.ListIterator
This inner class implements an Iterator for this
CollectionList. |
| Field Summary | |
|---|---|
private Collection<E> |
delegate
|
private static long |
serialVersionUID
UID for serialization. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CollectionList(Collection<E> delegate)
The constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.util.ArrayList |
|---|
addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, removeRange, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
private static final long serialVersionUID
private Collection<E> delegate
getDelegate()| Constructor Detail |
|---|
public CollectionList(Collection<E> delegate)
delegate - is the Collection to adapt.| Method Detail |
|---|
public Collection<E> getDelegate()
Collection that is adapted to
appear as List.
public E set(int index,
E element)
set in interface List<E>set in class ArrayList<E>public boolean add(E element)
add in interface Collection<E>add in interface List<E>add in class ArrayList<E>
public void add(int index,
E element)
add in interface List<E>add in class ArrayList<E>public E remove(int index)
remove in interface List<E>remove in class ArrayList<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface List<E>remove in class ArrayList<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>addAll in interface List<E>addAll in class ArrayList<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface List<E>iterator in class AbstractList<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||