Package org.drools.core.common
Class ObjectStoreWrapper
- java.lang.Object
-
- org.drools.core.common.ObjectStoreWrapper
-
- All Implemented Interfaces:
Iterable,Collection
public class ObjectStoreWrapper extends Object implements Collection
-
-
Field Summary
Fields Modifier and Type Field Description static intFACT_HANDLEorg.kie.api.runtime.ObjectFilterfilterstatic intOBJECTObjectStorestoreinttype
-
Constructor Summary
Constructors Constructor Description ObjectStoreWrapper(ObjectStore store, org.kie.api.runtime.ObjectFilter filter, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Object o)booleanaddAll(Collection c)voidclear()booleancontains(Object object)booleancontainsAll(Collection c)booleanisEmpty()Iterator<?>iterator()booleanremove(Object o)booleanremoveAll(Collection c)booleanretainAll(Collection c)intsize()Object[]toArray()Object[]toArray(Object[] array)StringtoString()-
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
-
store
public ObjectStore store
-
filter
public org.kie.api.runtime.ObjectFilter filter
-
type
public int type
-
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
-
FACT_HANDLE
public static final int FACT_HANDLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectStoreWrapper
public ObjectStoreWrapper(ObjectStore store, org.kie.api.runtime.ObjectFilter filter, int type)
-
-
Method Detail
-
contains
public boolean contains(Object object)
- Specified by:
containsin interfaceCollection
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAllin interfaceCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection
-
size
public int size()
- Specified by:
sizein interfaceCollection
-
iterator
public Iterator<?> iterator()
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection
-
toArray
public Object[] toArray(Object[] array)
- Specified by:
toArrayin interfaceCollection
-
add
public boolean add(Object o)
- Specified by:
addin interfaceCollection
-
addAll
public boolean addAll(Collection c)
- Specified by:
addAllin interfaceCollection
-
clear
public void clear()
- Specified by:
clearin interfaceCollection
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection
-
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAllin interfaceCollection
-
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAllin interfaceCollection
-
-