Package avm
Class Result
- java.lang.Object
-
- avm.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()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-