Package jadex.bdi.runtime.wrappers
Class SetWrapper<T>
java.lang.Object
jadex.collection.CollectionWrapper<T>
jadex.collection.SetWrapper<T>
jadex.bdi.runtime.wrappers.SetWrapper<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Set<T>
public class SetWrapper<T>
extends jadex.collection.SetWrapper<T>
-
Field Summary
FieldsFields inherited from class jadex.collection.CollectionWrapper
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionSetWrapper
(Set<T> delegate, jadex.core.IComponent 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
Modifier and TypeMethodDescriptionprotected 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
void
setAgent
(jadex.core.IComponent agent) Methods inherited from class jadex.collection.CollectionWrapper
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
publisher
The event publisher.
-
-
Constructor Details
-
Method Details
-
setAgent
public void setAgent(jadex.core.IComponent agent) -
isInitWrite
public boolean isInitWrite() -
entryAdded
An entry was added to the collection.- Specified by:
entryAdded
in classjadex.collection.CollectionWrapper<T>
-
entryRemoved
An entry was removed from the collection.- Specified by:
entryRemoved
in classjadex.collection.CollectionWrapper<T>
-
entryChanged
An entry was changed in the collection.- Specified by:
entryChanged
in classjadex.collection.CollectionWrapper<T>
-