Class EqualsComparison
java.lang.Object
io.axoniq.framework.workflow.runtime.association.EqualsComparison
- All Implemented Interfaces:
ValueComparisonOperator,BiFunction<Object,Object, Boolean>
Executes comparison based on equality of objects.
This is a simple equals operator allowing to specify association string of type: "key=value". The comparison will be
converted into a predicate on the event message accessing a payload attribute and comparing it with the given value
by applying the Object.equals(Object) method.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Details
-
OPERATOR
String representation of the operator.- See Also:
-
-
Constructor Details
-
EqualsComparison
public EqualsComparison()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<Object,Object, Boolean>
-
name
Description copied from interface:ValueComparisonOperatorReturns the name of the operator.- Specified by:
namein interfaceValueComparisonOperator- Returns:
- name of the operator.
-