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>
,SequencedCollection<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 TypeMethodDescriptionvoid
entryAdded
(T value, int index) An entry was added to the collection.void
entryChanged
(T oldvalue, T newvalue, int index) An entry was changed in the collection.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.ListWrapper
add, addAll, get, getList, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
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>
-