org.eclipse.net4j.util.container.delegate
Class ContainerList<E>

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.util.container.delegate.AbstractDelegator<E>
          extended by org.eclipse.net4j.util.container.delegate.ContainerCollection<E>
              extended by org.eclipse.net4j.util.container.delegate.ContainerList<E>
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>, IContainerCollection<E>, IContainerList<E>, IContainer<E>, INotifier, INotifier.Introspection

public class ContainerList<E>
extends ContainerCollection<E>
implements IContainerList<E>


Nested Class Summary
 class ContainerList.DelegatingListIterator
           
 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
AbstractDelegator.DelegatingIterator
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Constructor Summary
ContainerList(java.util.List<E> delegate)
           
 
Method Summary
 void add(int index, E element)
           
 boolean addAll(int index, java.util.Collection<? extends E> c)
           
 E get(int index)
           
 java.util.List<E> getDelegate()
           
 int indexOf(java.lang.Object o)
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<E> listIterator()
           
 java.util.ListIterator<E> listIterator(int index)
           
 E remove(int index)
           
 E set(int index, E element)
           
 java.util.List<E> subList(int fromIndex, int toIndex)
           
 
Methods inherited from class org.eclipse.net4j.util.container.delegate.ContainerCollection
add, addAll, clear, contains, containsAll, equals, getElements, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class org.eclipse.net4j.util.container.delegate.AbstractDelegator
createEvent, dispatchEvent, fireAddedEvent, fireRemovedEvent
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, getListeners, hasListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, removeListener
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ContainerList

public ContainerList(java.util.List<E> delegate)
Method Detail

getDelegate

public java.util.List<E> getDelegate()
Specified by:
getDelegate in interface IContainerCollection<E>
Specified by:
getDelegate in interface IContainerList<E>
Overrides:
getDelegate in class ContainerCollection<E>

add

public void add(int index,
                E element)
Specified by:
add in interface java.util.List<E>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends E> c)
Specified by:
addAll in interface java.util.List<E>

get

public E get(int index)
Specified by:
get in interface java.util.List<E>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<E>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<E>

listIterator

public java.util.ListIterator<E> listIterator()
Specified by:
listIterator in interface java.util.List<E>

listIterator

public java.util.ListIterator<E> listIterator(int index)
Specified by:
listIterator in interface java.util.List<E>

remove

public E remove(int index)
Specified by:
remove in interface java.util.List<E>

set

public E set(int index,
             E element)
Specified by:
set in interface java.util.List<E>

subList

public java.util.List<E> subList(int fromIndex,
                                 int toIndex)
Specified by:
subList in interface java.util.List<E>

Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.