Package org.stellar.sdk.xdr
Class InnerTransactionResultPair
java.lang.Object
org.stellar.sdk.xdr.InnerTransactionResultPair
- All Implemented Interfaces:
XdrElement
InnerTransactionResultPair's original definition in the XDR file is:
struct InnerTransactionResultPair
{
Hash transactionHash; // hash of the inner transaction
InnerTransactionResult result; // result for the inner transaction
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionInnerTransactionResultPair(Hash transactionHash, InnerTransactionResult result) Creates a newInnerTransactionResultPairinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static InnerTransactionResultPairdecode(XdrDataInputStream stream) static InnerTransactionResultPairdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic InnerTransactionResultPairstatic InnerTransactionResultPairfromXdrBase64(String xdr) static InnerTransactionResultPairfromXdrByteArray(byte[] xdr) Value of theresultfield.Value of thetransactionHashfield.inthashCode()voidsetResult(InnerTransactionResult result) Value of theresultfield.voidsetTransactionHash(Hash transactionHash) Value of thetransactionHashfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
InnerTransactionResultPair
public InnerTransactionResultPair() -
InnerTransactionResultPair
Creates a newInnerTransactionResultPairinstance.- Parameters:
transactionHash- thetransactionHashfield valueresult- theresultfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static InnerTransactionResultPair decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getTransactionHash
Value of thetransactionHashfield.- Returns:
- the
transactionHashfield value
-
getResult
Value of theresultfield.- Returns:
- the
resultfield value
-
setTransactionHash
Value of thetransactionHashfield.- Parameters:
transactionHash- thetransactionHashfield value
-
setResult
Value of theresultfield.- Parameters:
result- theresultfield value
-
equals
-
hashCode
public int hashCode() -
toString
-