Class SPIProbeFailure

    • Method Detail

      • withError

        public final SPIProbeFailure withError​(java.lang.Exception value)
        Copy the current immutable object by setting a present value for the optional error attribute.
        Parameters:
        value - The value for error
        Returns:
        A modified copy of this object
      • withError

        public final SPIProbeFailure withError​(java.util.Optional<? extends java.lang.Exception> optional)
        Copy the current immutable object by setting an optional value for the error 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 error
        Returns:
        A modified copy of this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: error.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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