Package org.drools.core.phreak
Class ReactiveCollection<T,W extends Collection<T>>
- java.lang.Object
-
- org.drools.core.phreak.AbstractReactiveObject
-
- org.drools.core.phreak.ReactiveCollection<T,W>
-
- All Implemented Interfaces:
Iterable<T>,Collection<T>,ReactiveObject
- Direct Known Subclasses:
ReactiveList,ReactiveSet
public class ReactiveCollection<T,W extends Collection<T>> extends AbstractReactiveObject implements Collection<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classReactiveCollection.ReactiveIterator<WI extends Iterator<T>>
-
Constructor Summary
Constructors Constructor Description ReactiveCollection(W wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T t)booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanisEmpty()Iterator<T>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()Object[]toArray()<T> T[]toArray(T[] a)StringtoString()-
Methods inherited from class org.drools.core.phreak.AbstractReactiveObject
addLeftTuple, getLeftTuples, notifyModification, removeLeftTuple
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Field Detail
-
wrapped
protected final W extends Collection<T> wrapped
-
-
Constructor Detail
-
ReactiveCollection
public ReactiveCollection(W wrapped)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<T>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T>
-
add
public boolean add(T t)
- Specified by:
addin interfaceCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAllin interfaceCollection<T>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<T>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T>
-
-