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
|
listeners
FIRST_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, removeListener
public 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 Map
Map.size()
public boolean isEmpty()
isEmpty
in interface Map
Map.isEmpty()
public boolean containsKey(Object arg0)
containsKey
in interface Map
Map.containsKey(java.lang.Object)
public boolean containsValue(Object arg0)
containsValue
in interface Map
Map.containsValue(java.lang.Object)
public Object get(Object arg0)
get
in interface Map
Map.get(java.lang.Object)
public Object put(Object arg0, Object arg1)
put
in interface Map
Map.put(java.lang.Object, java.lang.Object)
public Object remove(Object arg0)
remove
in interface Map
Map.remove(java.lang.Object)
public void putAll(Map arg0)
putAll
in interface Map
Map.putAll(java.util.Map)
public void clear()
clear
in interface Map
Map.clear()
public Set keySet()
keySet
in interface Map
Map.keySet()
public Collection values()
values
in interface Map
Map.values()
public Set entrySet()
entrySet
in interface Map
Map.entrySet()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.