public class EventProducingList extends EventProducer implements List
map.iterator.remove(). A listener must subscribe to the
iterator individually.
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/event
License of use: Lesser
General Public License (LGPL) , no warranty
| Modifier and Type | Field and Description |
|---|---|
static EventType |
OBJECT_ADDED_EVENT
OBJECT_ADDED_EVENT is fired on new entries
|
static EventType |
OBJECT_REMOVED_EVENT
OBJECT_REMOVED_EVENT is fired on removel of entries
|
listenersFIRST_POSITION, LAST_POSITION| Constructor and Description |
|---|
EventProducingList(List parent)
constructs a new EventProducingList.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
boolean |
addAll(int index,
Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
Object |
get(int index) |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
Object |
set(int index,
Object element) |
int |
size() |
List |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListenerpublic static final EventType OBJECT_ADDED_EVENT
public static final EventType OBJECT_REMOVED_EVENT
public EventProducingList(List parent)
parent - the parent list.public int size()
size in interface Collectionsize in interface ListList.size()public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListList.isEmpty()public void clear()
clear in interface Collectionclear in interface ListList.clear()public void add(int index,
Object element)
add in interface ListList.add(int, java.lang.Object)public boolean add(Object o)
add in interface Collectionadd in interface ListCollection.add(java.lang.Object)public boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListCollection.addAll(java.util.Collection)public boolean addAll(int index,
Collection c)
addAll in interface ListList.addAll(int, java.util.Collection)public boolean contains(Object o)
contains in interface Collectioncontains in interface ListCollection.contains(java.lang.Object)public boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface ListCollection.containsAll(java.util.Collection)public Object get(int index)
get in interface ListList.get(int)public int indexOf(Object o)
indexOf in interface ListList.indexOf(java.lang.Object)public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface ListCollection.iterator()public int lastIndexOf(Object o)
lastIndexOf in interface ListList.lastIndexOf(java.lang.Object)public ListIterator listIterator()
listIterator in interface ListList.listIterator()public ListIterator listIterator(int index)
listIterator in interface ListList.listIterator(int)public Object remove(int index)
remove in interface ListList.remove(int)public boolean remove(Object o)
remove in interface Collectionremove in interface ListCollection.remove(java.lang.Object)public boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListCollection.removeAll(java.util.Collection)public boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface ListCollection.retainAll(java.util.Collection)public Object set(int index, Object element)
set in interface ListList.set(int, java.lang.Object)public List subList(int fromIndex, int toIndex)
subList in interface ListList.subList(int, int)public Object[] toArray()
toArray in interface CollectiontoArray in interface ListCollection.toArray()public Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface ListCollection.toArray(java.lang.Object[])Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.