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 voidentryAdded(T value, int index) An entry was added to the collection.protected voidentryChanged(T oldvalue, T newvalue, int index) An entry was changed in the collection.protected voidentryRemoved(T value, int index) An entry was removed from the collection.booleanvoidsetAgent(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
entryAddedin classjadex.collection.CollectionWrapper<T>
-
entryRemoved
An entry was removed from the collection.- Specified by:
entryRemovedin classjadex.collection.CollectionWrapper<T>
-
entryChanged
An entry was changed in the collection.- Specified by:
entryChangedin classjadex.collection.CollectionWrapper<T>
-