public class EventProducingMap extends EventProducer implements Map
map.iterator.remove(). A listener must subscribe to the
iterator, key set, etc. 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 |
|---|
EventProducingMap(Map parent)
constructs a new EventProducingMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object arg0) |
boolean |
containsValue(Object arg0) |
Set |
entrySet() |
Object |
get(Object arg0) |
boolean |
isEmpty() |
Set |
keySet() |
Object |
put(Object arg0,
Object arg1) |
void |
putAll(Map arg0) |
Object |
remove(Object arg0) |
int |
size() |
Collection |
values() |
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 EventProducingMap(Map parent)
parent - the parent map.public int size()
size in interface MapMap.size()public boolean isEmpty()
isEmpty in interface MapMap.isEmpty()public boolean containsKey(Object arg0)
containsKey in interface MapMap.containsKey(java.lang.Object)public boolean containsValue(Object arg0)
containsValue in interface MapMap.containsValue(java.lang.Object)public Object get(Object arg0)
get in interface MapMap.get(java.lang.Object)public Object put(Object arg0, Object arg1)
put in interface MapMap.put(java.lang.Object, java.lang.Object)public Object remove(Object arg0)
remove in interface MapMap.remove(java.lang.Object)public void putAll(Map arg0)
putAll in interface MapMap.putAll(java.util.Map)public void clear()
clear in interface MapMap.clear()public Set keySet()
keySet in interface MapMap.keySet()public Collection values()
values in interface MapMap.values()public Set entrySet()
entrySet in interface MapMap.entrySet()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.