Package org.drools.core.common
Interface InternalFactHandle
- All Superinterfaces:
Cloneable,FactHandle,Serializable
- All Known Implementing Classes:
DefaultEventHandle,DefaultFactHandle,DisconnectedFactHandle,InternalFactHandle.DummyFactHandle,QueryElementFactHandle
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfaceNested classes/interfaces inherited from interface org.kie.api.runtime.rule.FactHandle
FactHandle.State -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstLeftTuple(TupleImpl leftTuple) voidaddLastLeftTuple(TupleImpl leftTuple) voidaddLastRightTuple(TupleImpl rightTuple) voidvoidclone()voidstatic InternalFactHandledummyFactHandleOf(Object object) findFirstLeftTuple(Predicate<TupleImpl> lefttTuplePredicate) voidforEachLeftTuple(Consumer<TupleImpl> leftTupleConsumer) voidforEachRightTuple(Consumer<TupleImpl> rightTupleConsumer) getEntryPoint(ReteEvaluator reteEvaluator) default StringlonggetId()intintlongdefault ReteEvaluatordefault booleanvoidbooleanbooleanisEvent()Returns true if this FactHandle represents and Event or false if this FactHandle represents a regular FactbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid()voidremoveLeftTuple(TupleImpl leftTuple) voidremoveRightTuple(TupleImpl rightTuple) default voidsetDisconnected(boolean disconnected) voidvoidsetNegated(boolean negated) voidvoidsetRecency(long recency) Methods inherited from interface org.kie.api.runtime.rule.FactHandle
as
-
Method Details
-
getId
long getId()- Specified by:
getIdin interfaceFactHandle
-
getRecency
long getRecency()- Specified by:
getRecencyin interfaceFactHandle
-
getObject
Object getObject()- Specified by:
getObjectin interfaceFactHandle
-
getObjectClassName
String getObjectClassName() -
setObject
-
setEqualityKey
-
getEqualityKey
EqualityKey getEqualityKey() -
setRecency
void setRecency(long recency) -
invalidate
void invalidate() -
isValid
boolean isValid()- Specified by:
isValidin interfaceFactHandle
-
getIdentityHashCode
int getIdentityHashCode() -
getObjectHashCode
int getObjectHashCode() -
isDisconnected
boolean isDisconnected() -
setDisconnected
default void setDisconnected(boolean disconnected) -
isEvent
boolean isEvent()Returns true if this FactHandle represents and Event or false if this FactHandle represents a regular Fact- Specified by:
isEventin interfaceFactHandle- Returns:
-
isTraitOrTraitable
boolean isTraitOrTraitable() -
isTraitable
boolean isTraitable() -
isTraiting
boolean isTraiting() -
getTraitType
TraitTypeEnum getTraitType() -
getFirstRightTuple
TupleImpl getFirstRightTuple() -
getFirstLeftTuple
TupleImpl getFirstLeftTuple() -
getReteEvaluator
-
getEntryPointId
EntryPointId getEntryPointId() -
getEntryPointName
-
getEntryPoint
-
clone
InternalFactHandle clone() -
toExternalForm
String toExternalForm()- Specified by:
toExternalFormin interfaceFactHandle
-
disconnect
void disconnect() -
addFirstLeftTuple
-
addLastLeftTuple
-
removeLeftTuple
-
clearLeftTuples
void clearLeftTuples() -
clearRightTuples
void clearRightTuples() -
addLastRightTuple
-
removeRightTuple
-
isNegated
boolean isNegated()- Specified by:
isNegatedin interfaceFactHandle
-
setNegated
void setNegated(boolean negated) -
isExpired
boolean isExpired() -
isPendingRemoveFromStore
boolean isPendingRemoveFromStore() -
forEachRightTuple
-
forEachLeftTuple
-
findFirstLeftTuple
-
detachLinkedTuples
InternalFactHandle.LinkedTuples detachLinkedTuples() -
detachLinkedTuplesForPartition
-
getLinkedTuples
InternalFactHandle.LinkedTuples getLinkedTuples() -
hasMatches
default boolean hasMatches() -
dummyFactHandleOf
-