Class ImmutableRuleExpressionCompilerError

    • Method Detail

      • withErrorCode

        public final ImmutableRuleExpressionCompilerError withErrorCode​(String value)
        Copy the current immutable object by setting a value for the errorCode attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for errorCode
        Returns:
        A modified copy of the this object
      • withArgs

        public final ImmutableRuleExpressionCompilerError withArgs​(Object[] value)
        Copy the current immutable object by setting a present value for the optional args attribute.
        Parameters:
        value - The value for args
        Returns:
        A modified copy of this object
      • withArgs

        public final ImmutableRuleExpressionCompilerError withArgs​(Optional<? extends Object[]> optional)
        Copy the current immutable object by setting an optional value for the args attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for args
        Returns:
        A modified copy of this object
      • withSpan

        public final ImmutableRuleExpressionCompilerError withSpan​(Span value)
        Copy the current immutable object by setting a value for the span attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for span
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableRuleExpressionCompilerError that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: errorCode, args, span.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value RuleExpressionCompilerError with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static ImmutableRuleExpressionCompilerError of​(String errorCode,
                                                              Span span)
        Construct a new immutable RuleExpressionCompilerError instance.
        Parameters:
        errorCode - The value for the errorCode attribute
        span - The value for the span attribute
        Returns:
        An immutable RuleExpressionCompilerError instance