public class CollectionWrapper<T> extends Object implements Collection<T>
Constructor and Description |
---|
CollectionWrapper(Collection<T> delegate,
BDIAgentInterpreter interpreter,
jadex.rules.eca.EventType addevent,
jadex.rules.eca.EventType remevent,
jadex.rules.eca.EventType changeevent,
MBelief mbel)
Create a new collection wrapper.
|
CollectionWrapper(Collection<T> delegate,
BDIAgentInterpreter interpreter,
String addevent,
String remevent,
String changeevent,
MBelief mbel)
Create a new collection wrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj)
Test if this object equals another.
|
BDIAgentInterpreter |
getInterpreter()
Get the interpreter.
|
jadex.rules.eca.RuleSystem |
getRuleSystem()
Get the rule system.
|
int |
hashCode()
Get the hashcode of the object.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
void |
observeValue(Object val) |
void |
publishToolBeliefEvent() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size()
Get the size.
|
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString()
Get the string representation.
|
void |
unobserveValue(Object val) |
parallelStream, removeIf, spliterator, stream
public CollectionWrapper(Collection<T> delegate, BDIAgentInterpreter interpreter, String addevent, String remevent, String changeevent, MBelief mbel)
public CollectionWrapper(Collection<T> delegate, BDIAgentInterpreter interpreter, jadex.rules.eca.EventType addevent, jadex.rules.eca.EventType remevent, jadex.rules.eca.EventType changeevent, MBelief mbel)
public int size()
size
in interface Collection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
public Object[] toArray()
toArray
in interface Collection<T>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<T>
public boolean add(T e)
add
in interface Collection<T>
public boolean remove(Object o)
remove
in interface Collection<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
public void clear()
clear
in interface Collection<T>
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface Collection<T>
equals
in class Object
obj
- The other object.public String toString()
public BDIAgentInterpreter getInterpreter()
public jadex.rules.eca.RuleSystem getRuleSystem()
public void observeValue(Object val)
public void unobserveValue(Object val)
public void publishToolBeliefEvent()
Copyright © 2015. All Rights Reserved.