Package jadex.bdiv3.runtime.wrappers
Class SetWrapper<T>
- java.lang.Object
-
- jadex.commons.collection.wrappers.CollectionWrapper<T>
-
- jadex.commons.collection.wrappers.SetWrapper<T>
-
- jadex.bdiv3.runtime.wrappers.SetWrapper<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Set<T>
public class SetWrapper<T> extends SetWrapper<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected IEventPublisher
publisher
The event publisher.-
Fields inherited from class jadex.commons.collection.wrappers.CollectionWrapper
delegate
-
-
Constructor Summary
Constructors Constructor Description SetWrapper(java.util.Set<T> delegate, IInternalAccess agent, jadex.rules.eca.EventType addevent, jadex.rules.eca.EventType remevent, jadex.rules.eca.EventType 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 value, int index)
An entry was added to the collection.protected void
entryChanged(T oldvalue, T newvalue, int index)
An entry was changed in the collection.protected void
entryRemoved(T value, int index)
An entry was removed from the collection.boolean
isInitWrite()
void
setAgent(IInternalAccess agent)
-
Methods inherited from class jadex.commons.collection.wrappers.CollectionWrapper
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
-
-
-
-
Field Detail
-
publisher
protected IEventPublisher publisher
The event publisher.
-
-
Constructor Detail
-
SetWrapper
public SetWrapper(java.util.Set<T> delegate, IInternalAccess agent, jadex.rules.eca.EventType addevent, jadex.rules.eca.EventType remevent, jadex.rules.eca.EventType 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 value, int index)
An entry was added to the collection.- Specified by:
entryAdded
in classCollectionWrapper<T>
-
entryRemoved
protected void entryRemoved(T value, int index)
An entry was removed from the collection.- Specified by:
entryRemoved
in classCollectionWrapper<T>
-
entryChanged
protected void entryChanged(T oldvalue, T newvalue, int index)
An entry was changed in the collection.- Specified by:
entryChanged
in classCollectionWrapper<T>
-
-