public class EventProducingSet extends EventProducer implements Set
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
| 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 |
|---|
EventProducingSet(Set parent)
constructs a new EventProducingList.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
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 EventProducingSet(Set parent)
parent - the parent set.public int size()
size in interface Collectionsize in interface SetSet.size()public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetSet.isEmpty()public void clear()
clear in interface Collectionclear in interface SetSet.clear()public boolean add(Object o)
add in interface Collectionadd in interface SetCollection.add(java.lang.Object)public boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface SetCollection.addAll(java.util.Collection)public boolean contains(Object o)
contains in interface Collectioncontains in interface SetCollection.contains(java.lang.Object)public boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface SetCollection.containsAll(java.util.Collection)public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface SetCollection.iterator()public boolean remove(Object o)
remove in interface Collectionremove in interface SetCollection.remove(java.lang.Object)public boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface SetCollection.removeAll(java.util.Collection)public boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface SetCollection.retainAll(java.util.Collection)public Object[] toArray()
toArray in interface CollectiontoArray in interface SetCollection.toArray()public Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SetCollection.toArray(java.lang.Object[])Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.