|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.util.ForwardingList<E>
de.upb.hni.vmagic.util.ParentSetList<E>
E
- the type of the list elementspublic class ParentSetList<E extends VhdlElement>
Implementation of the List
interfaces that sets the parent of
the added items.
Method Summary | ||
---|---|---|
boolean |
add(E e)
Adds an element to this list. |
|
void |
add(int index,
E element)
Adds an element to a specific position in this list. |
|
boolean |
addAll(java.util.Collection<? extends E> c)
Adds all elements of a collection to this list. |
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c)
Adds all elements of a collection to a specific index in this list. |
|
void |
clear()
Clears this list. |
|
static
|
create(DeclarativeRegion parent)
Creates a new ParentSetList which uses an ArrayList for storage. |
|
static
|
create(DeclarativeRegion parent,
java.util.List<E> list)
Creates a new ParentSetList. |
|
static
|
createProxyList(java.util.List<E> list,
VhdlElement parent)
Creates a new proxy ParentSetList and initializes it from a given list. |
|
static
|
createProxyList(VhdlElement parent)
Creates a new proxy ParentSetList which uses an ArrayList for storage. |
|
java.util.Iterator<E> |
iterator()
Returns an iterator for this list. |
|
java.util.ListIterator<E> |
listIterator()
Returns a list iterator for this list. |
|
java.util.ListIterator<E> |
listIterator(int index)
Returns a list iterator with a start index. |
|
E |
remove(int index)
Removes the element at a given index. |
|
boolean |
remove(java.lang.Object o)
Removes an object from this list. |
|
boolean |
removeAll(java.util.Collection<?> c)
Removes all elements in a collection from this list. |
|
boolean |
retainAll(java.util.Collection<?> c)
Removes all elements that are not in the given collection from this list. |
|
E |
set(int index,
E element)
Sets the element at the given index. |
|
java.util.List<E> |
subList(int fromIndex,
int toIndex)
Returns a sub list of this list. |
Methods inherited from class de.upb.hni.vmagic.util.ForwardingList |
---|
contains, containsAll, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Method Detail |
---|
public static <E extends VhdlElement> java.util.List<E> create(DeclarativeRegion parent)
E
- the type of the list elementsparent
- the parent declarative region
public static <E extends VhdlElement> java.util.List<E> create(DeclarativeRegion parent, java.util.List<E> list)
E
- the type of the list elementslist
- the list used for element storageparent
- the parent declarative region
public static <E extends VhdlElement> java.util.List<E> createProxyList(VhdlElement parent)
E
- the type of the list elementsparent
- the parent
public static <E extends VhdlElement> java.util.List<E> createProxyList(java.util.List<E> list, VhdlElement parent)
E
- the type of the list elementslist
- the list used for element storageparent
- the parent
public boolean add(E e)
ForwardingList
add
in interface java.util.Collection<E extends VhdlElement>
add
in interface java.util.List<E extends VhdlElement>
add
in class ForwardingList<E extends VhdlElement>
e
- the element
true
public void add(int index, E element)
ForwardingList
add
in interface java.util.List<E extends VhdlElement>
add
in class ForwardingList<E extends VhdlElement>
index
- the indexelement
- the elementpublic boolean addAll(java.util.Collection<? extends E> c)
ForwardingList
addAll
in interface java.util.Collection<E extends VhdlElement>
addAll
in interface java.util.List<E extends VhdlElement>
addAll
in class ForwardingList<E extends VhdlElement>
c
- the collection
true
, if this list was changedpublic boolean addAll(int index, java.util.Collection<? extends E> c)
ForwardingList
addAll
in interface java.util.List<E extends VhdlElement>
addAll
in class ForwardingList<E extends VhdlElement>
index
- the indexc
- the collection
true
, if this list was changedpublic boolean remove(java.lang.Object o)
ForwardingList
remove
in interface java.util.Collection<E extends VhdlElement>
remove
in interface java.util.List<E extends VhdlElement>
remove
in class ForwardingList<E extends VhdlElement>
o
- the object
true
, if the object was removedpublic E remove(int index)
ForwardingList
remove
in interface java.util.List<E extends VhdlElement>
remove
in class ForwardingList<E extends VhdlElement>
index
- the index
public boolean removeAll(java.util.Collection<?> c)
ForwardingList
removeAll
in interface java.util.Collection<E extends VhdlElement>
removeAll
in interface java.util.List<E extends VhdlElement>
removeAll
in class ForwardingList<E extends VhdlElement>
c
- the collection
true
, if this list was changedpublic boolean retainAll(java.util.Collection<?> c)
ForwardingList
retainAll
in interface java.util.Collection<E extends VhdlElement>
retainAll
in interface java.util.List<E extends VhdlElement>
retainAll
in class ForwardingList<E extends VhdlElement>
c
- the collection
true
, if this list was changedpublic void clear()
ForwardingList
clear
in interface java.util.Collection<E extends VhdlElement>
clear
in interface java.util.List<E extends VhdlElement>
clear
in class ForwardingList<E extends VhdlElement>
public E set(int index, E element)
ForwardingList
set
in interface java.util.List<E extends VhdlElement>
set
in class ForwardingList<E extends VhdlElement>
index
- the indexelement
- the new element
public java.util.ListIterator<E> listIterator(int index)
ForwardingList
listIterator
in interface java.util.List<E extends VhdlElement>
listIterator
in class ForwardingList<E extends VhdlElement>
index
- the index
public java.util.ListIterator<E> listIterator()
ForwardingList
listIterator
in interface java.util.List<E extends VhdlElement>
listIterator
in class ForwardingList<E extends VhdlElement>
public java.util.Iterator<E> iterator()
ForwardingList
iterator
in interface java.lang.Iterable<E extends VhdlElement>
iterator
in interface java.util.Collection<E extends VhdlElement>
iterator
in interface java.util.List<E extends VhdlElement>
iterator
in class ForwardingList<E extends VhdlElement>
public java.util.List<E> subList(int fromIndex, int toIndex)
ForwardingList
subList
in interface java.util.List<E extends VhdlElement>
subList
in class ForwardingList<E extends VhdlElement>
fromIndex
- the first indextoIndex
- the last index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |