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 ClassesModifier and TypeClassDescriptionprotected classReactiveCollection.ReactiveIterator<WI extends Iterator<T>> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class org.drools.core.phreak.AbstractReactiveObject
addTuple, getTuples, notifyModification, removeTupleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
wrapped
-
-
Constructor Details
-
ReactiveCollection
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
iterator
-
toString
-