Package jadex.bdi.runtime.wrappers
Class ListWrapper<T>
java.lang.Object
jadex.collection.CollectionWrapper<T>
jadex.collection.ListWrapper<T>
jadex.bdi.runtime.wrappers.ListWrapper<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
public class ListWrapper<T>
extends jadex.collection.ListWrapper<T>
-
Field Summary
FieldsFields inherited from class jadex.collection.CollectionWrapper
delegate -
Constructor Summary
ConstructorsConstructorDescriptionListWrapper(List<T> delegate, jadex.core.IComponent agent, jadex.rules.eca.EventType addevent, jadex.rules.eca.EventType remevent, jadex.rules.eca.EventType changeevent, MElement melem) Create a new list wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoidentryAdded(T value, int index) An entry was added to the collection.voidentryChanged(T oldvalue, T newvalue, int index) An entry was changed in the collection.voidentryRemoved(T value, int index) An entry was removed from the collection.booleanvoidsetAgent(jadex.core.IComponent agent) Methods inherited from class jadex.collection.ListWrapper
add, addAll, get, getList, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subListMethods 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>
-