Package org.stellar.sdk.xdr
Class TransactionResultPair
java.lang.Object
org.stellar.sdk.xdr.TransactionResultPair
- All Implemented Interfaces:
XdrElement
TransactionResultPair's original definition in the XDR file is:
struct TransactionResultPair
{
Hash transactionHash;
TransactionResult result; // result for the transaction
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionResultPair(Hash transactionHash, TransactionResult result) Creates a newTransactionResultPairinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionResultPairdecode(XdrDataInputStream stream) static TransactionResultPairdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionResultPairstatic TransactionResultPairfromXdrBase64(String xdr) static TransactionResultPairfromXdrByteArray(byte[] xdr) Value of theresultfield.Value of thetransactionHashfield.inthashCode()voidsetResult(TransactionResult 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
-
TransactionResultPair
public TransactionResultPair() -
TransactionResultPair
Creates a newTransactionResultPairinstance.- 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 TransactionResultPair 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
-