Package jadex.bdiv3.runtime.wrappers
Class MapWrapper<T,E>
- java.lang.Object
-
- jadex.commons.collection.wrappers.MapWrapper<T,E>
-
- jadex.bdiv3.runtime.wrappers.MapWrapper<T,E>
-
- All Implemented Interfaces:
java.util.Map<T,E>
public class MapWrapper<T,E> extends MapWrapper<T,E>
-
-
Field Summary
Fields Modifier and Type Field Description protected IEventPublisher
publisher
The event publisher.-
Fields inherited from class jadex.commons.collection.wrappers.MapWrapper
delegate
-
-
Constructor Summary
Constructors Constructor Description MapWrapper(java.util.Map<T,E> delegate, IInternalAccess agent, EventType addevent, EventType remevent, EventType changeevent, MElement mbel)
Create a new set wrapper.MapWrapper(java.util.Map<T,E> delegate, IInternalAccess agent, java.lang.String addevent, java.lang.String remevent, java.lang.String changeevent, MElement mbel)
Create a new set wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
entryAdded(T key, E value)
An entry was added to the map.protected void
entryChanged(T key, E oldvalue, E newvalue)
An entry was changed in the map.protected void
entryRemoved(T key, E value)
An entry was removed from the map.boolean
isInitWrite()
void
setAgent(IInternalAccess agent)
-
Methods inherited from class jadex.commons.collection.wrappers.MapWrapper
clear, containsKey, containsValue, entriesAdded, entriesRemoved, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Field Detail
-
publisher
protected IEventPublisher publisher
The event publisher.
-
-
Constructor Detail
-
MapWrapper
public MapWrapper(java.util.Map<T,E> delegate, IInternalAccess agent, java.lang.String addevent, java.lang.String remevent, java.lang.String changeevent, MElement mbel)
Create a new set wrapper.
-
-
Method Detail
-
setAgent
public void setAgent(IInternalAccess agent)
-
isInitWrite
public boolean isInitWrite()
-
entryAdded
protected void entryAdded(T key, E value)
An entry was added to the map.- Specified by:
entryAdded
in classMapWrapper<T,E>
-
entryRemoved
protected void entryRemoved(T key, E value)
An entry was removed from the map.- Specified by:
entryRemoved
in classMapWrapper<T,E>
-
entryChanged
protected void entryChanged(T key, E oldvalue, E newvalue)
An entry was changed in the map.- Specified by:
entryChanged
in classMapWrapper<T,E>
-
-