Class NotifiedMethodInvocationReport

    • Field Detail

      • returnedValue

        private final java.lang.Object returnedValue
      • throwable

        private final java.lang.Throwable throwable
    • Constructor Detail

      • NotifiedMethodInvocationReport

        public NotifiedMethodInvocationReport​(Invocation invocation,
                                              java.lang.Object returnedValue)
        Build a new MethodInvocationReport with a return value.
        Parameters:
        invocation - Information on the method call
        returnedValue - The value returned by the method invocation
      • NotifiedMethodInvocationReport

        public NotifiedMethodInvocationReport​(Invocation invocation,
                                              java.lang.Throwable throwable)
        Build a new MethodInvocationReport with a return value.
        Parameters:
        invocation - Information on the method call
        throwable - Tha throwable raised by the method invocation
    • Method Detail

      • getReturnedValue

        public java.lang.Object getReturnedValue()
        Specified by:
        getReturnedValue in interface MethodInvocationReport
        Returns:
        The resulting value of the method invocation, may be null
      • getThrowable

        public java.lang.Throwable getThrowable()
        Specified by:
        getThrowable in interface MethodInvocationReport
        Returns:
        The throwable raised by the method invocation, maybe null
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object