Class Operator

    • Constructor Detail

      • Operator

        public Operator()
    • Method Detail

      • addOperatorToRegistry

        public static Operator addOperatorToRegistry​(String operatorId,
                                                     boolean isNegated)
        Creates a new Operator instance for the given parameters, adds it to the registry and return it
        Parameters:
        operatorId - the identification symbol of the operator
        isNegated - true if it is negated
        Returns:
        the newly created operator
      • determineOperator

        public static Operator determineOperator​(String operatorId,
                                                 boolean isNegated)
        Returns the operator instance for the given parameters
        Parameters:
        operatorId - the identification symbol of the operator
        isNegated - true if it is negated
        Returns:
        the operator in case it exists
      • getOperatorString

        public String getOperatorString()
        Specified by:
        getOperatorString in interface org.kie.api.runtime.rule.Operator
      • isNegated

        public boolean isNegated()
        Specified by:
        isNegated in interface org.kie.api.runtime.rule.Operator
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object