nl.tudelft.simulation.event.util
Class EventProducingMap
java.lang.Object
nl.tudelft.simulation.event.EventProducer
nl.tudelft.simulation.event.util.EventProducingMap
- All Implemented Interfaces:
- EventProducerInterface, java.util.Map, java.io.Serializable
- public class EventProducingMap
- extends EventProducer
- implements java.util.Map
The Event producing map provides a map to which one can subscribe interest in
entry changes. This class does not keep track of changes which take place
indirectly. One is for example not notified on
map.iterator.remove(). A listener must subscribe to the
iterator, key set, etc. individually.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
- Since:
- 1.2
- Version:
- 1.3, 2004-03-18
- Author:
- Peter
Jacobs
- See Also:
- Serialized Form
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
|
Constructor Summary |
EventProducingMap(java.util.Map parent)
constructs a new EventProducingMap. |
|
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object arg0)
|
boolean |
containsValue(java.lang.Object arg0)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object arg0)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object arg0,
java.lang.Object arg1)
|
void |
putAll(java.util.Map arg0)
|
java.lang.Object |
remove(java.lang.Object arg0)
|
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class nl.tudelft.simulation.event.EventProducer |
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getEventTypes, removeAllListeners, removeAllListeners, removeListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
OBJECT_ADDED_EVENT
public static final EventType OBJECT_ADDED_EVENT
- OBJECT_ADDED_EVENT is fired on new entries
OBJECT_REMOVED_EVENT
public static final EventType OBJECT_REMOVED_EVENT
- OBJECT_REMOVED_EVENT is fired on removel of entries
EventProducingMap
public EventProducingMap(java.util.Map parent)
- constructs a new EventProducingMap.
- Parameters:
parent - the parent map.
size
public int size()
- Specified by:
size in interface java.util.Map
- See Also:
Map.size()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map
- See Also:
Map.isEmpty()
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKey in interface java.util.Map
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValue in interface java.util.Map
- See Also:
Map.containsValue(java.lang.Object)
get
public java.lang.Object get(java.lang.Object arg0)
- Specified by:
get in interface java.util.Map
- See Also:
Map.get(java.lang.Object)
put
public java.lang.Object put(java.lang.Object arg0,
java.lang.Object arg1)
- Specified by:
put in interface java.util.Map
- See Also:
Map.put(java.lang.Object, java.lang.Object)
remove
public java.lang.Object remove(java.lang.Object arg0)
- Specified by:
remove in interface java.util.Map
- See Also:
Map.remove(java.lang.Object)
putAll
public void putAll(java.util.Map arg0)
- Specified by:
putAll in interface java.util.Map
- See Also:
Map.putAll(java.util.Map)
clear
public void clear()
- Specified by:
clear in interface java.util.Map
- See Also:
Map.clear()
keySet
public java.util.Set keySet()
- Specified by:
keySet in interface java.util.Map
- See Also:
Map.keySet()
values
public java.util.Collection values()
- Specified by:
values in interface java.util.Map
- See Also:
Map.values()
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet in interface java.util.Map
- See Also:
Map.entrySet()
Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.