Package jadex.bdiv3.runtime.wrappers
Class ListWrapper<T>
- java.lang.Object
-
- jadex.commons.collection.wrappers.CollectionWrapper<T>
-
- jadex.commons.collection.wrappers.ListWrapper<T>
-
- jadex.bdiv3.runtime.wrappers.ListWrapper<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
public class ListWrapper<T> extends ListWrapper<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 ListWrapper(java.util.List<T> delegate, IInternalAccess agent, EventType addevent, EventType remevent, EventType changeevent, MElement melem)
Create a new list wrapper.ListWrapper(java.util.List<T> delegate, IInternalAccess agent, java.lang.String addevent, java.lang.String remevent, java.lang.String changeevent, MElement melem)
Create a new list wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
isInitWrite()
void
setAgent(IInternalAccess agent)
-
Methods inherited from class jadex.commons.collection.wrappers.ListWrapper
add, addAll, get, getList, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
-
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
-
ListWrapper
public ListWrapper(java.util.List<T> delegate, IInternalAccess agent, java.lang.String addevent, java.lang.String remevent, java.lang.String changeevent, MElement melem)
Create a new list wrapper.
-
-
Method Detail
-
setAgent
public void setAgent(IInternalAccess agent)
-
isInitWrite
public boolean isInitWrite()
-
entryAdded
public void entryAdded(T value, int index)
An entry was added to the collection.- Specified by:
entryAdded
in classCollectionWrapper<T>
-
entryRemoved
public void entryRemoved(T value, int index)
An entry was removed from the collection.- Specified by:
entryRemoved
in classCollectionWrapper<T>
-
entryChanged
public void entryChanged(T oldvalue, T newvalue, int index)
An entry was changed in the collection.- Specified by:
entryChanged
in classCollectionWrapper<T>
-
-