public final class QuickTriggerable extends Object
Triggerable has a deep equals() comparison operator, required while building the DAG. Once the DAG gets built, object references are enough, since no new Triggerables should be created after that.
| Modifier and Type | Method and Description |
|---|---|
List<EvaluationResult> |
apply(FormInstance mainInstance,
EvaluationContext ec,
TreeReference qualified) |
boolean |
canCascade() |
boolean |
contains(Triggerable triggerable) |
boolean |
equals(Object obj)
Quicker implementation of Triggerable.equals() that only consider object references.
|
Object |
eval(FormInstance mainInstance,
EvaluationContext evaluationContext) |
TreeReference |
getContext() |
TreeReference |
getOriginalContext() |
Triggerable |
getTriggerable() |
int |
hashCode()
Returns the hashCode of the wrapped Triggerable object based on
System.identityHashCode(Object),
which should be quicker than the original hashCode method in Triggerable. |
boolean |
isCondition() |
String |
toString() |
public boolean isCondition()
public List<EvaluationResult> apply(FormInstance mainInstance, EvaluationContext ec, TreeReference qualified)
public boolean contains(Triggerable triggerable)
public boolean canCascade()
public Triggerable getTriggerable()
public Object eval(FormInstance mainInstance, EvaluationContext evaluationContext)
public TreeReference getContext()
public TreeReference getOriginalContext()
public boolean equals(Object obj)
public int hashCode()
System.identityHashCode(Object),
which should be quicker than the original hashCode method in Triggerable.
The actual return value is computed once during object creation at of(Triggerable)
Copyright © 2023. All rights reserved.