public final class DroolsLogicalTuple extends Object
getRuleId()
and their getItem(int)
all
Objects.equals(Object, Object)
as well. Drools will not re-insert a fact if equalling fact has already been
inserted before.Constructor and Description |
---|
DroolsLogicalTuple(Object ruleId,
Object... items) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCardinality() |
<T> T |
getItem(int index)
Return a fact on n-th position in the tuple.
|
Object |
getRuleId() |
int |
hashCode() |
String |
toString() |
public int getCardinality()
public Object getRuleId()
public <T> T getItem(int index)
T
- type that we're expecting to see. Method may throw an exception if the cast can not be made.index
- required position in the tuple. Must be between 0 (incl.) and getCardinality()
(excl.)ArrayIndexOutOfBoundsException
- when index not between 0 (incl.) and getCardinality()
(excl.)Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.