Package avm

Class Result


  • public class Result
    extends java.lang.Object
    Represents an cross-call invocation result.
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(boolean success, byte[] returnData)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      byte[] getReturnData()
      Returns the data returned by the invoked dapp.
      int hashCode()  
      boolean isSuccess()
      Returns whether the invocation is success or not.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Result

        public Result​(boolean success,
                      byte[] returnData)
        Creates an instance.
        Parameters:
        success - whether the invocation is success or not.
        returnData - the return data
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Returns whether the invocation is success or not.
        Returns:
        true if success
      • getReturnData

        public byte[] getReturnData()
        Returns the data returned by the invoked dapp.
        Returns:
        a byte array, may be NULL
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

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