Package org.stellar.sdk.xdr
Class TransactionMetaV1
java.lang.Object
org.stellar.sdk.xdr.TransactionMetaV1
- All Implemented Interfaces:
XdrElement
TransactionMetaV1's original definition in the XDR file is:
struct TransactionMetaV1
{
LedgerEntryChanges txChanges; // tx level changes if any
OperationMeta operations<>; // meta for each operation
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionMetaV1(LedgerEntryChanges txChanges, OperationMeta[] operations) Creates a newTransactionMetaV1instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionMetaV1decode(XdrDataInputStream stream) static TransactionMetaV1decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionMetaV1static TransactionMetaV1fromXdrBase64(String xdr) static TransactionMetaV1fromXdrByteArray(byte[] xdr) Value of theoperationsfield.Value of thetxChangesfield.inthashCode()voidsetOperations(OperationMeta[] operations) Value of theoperationsfield.voidsetTxChanges(LedgerEntryChanges txChanges) Value of thetxChangesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionMetaV1
public TransactionMetaV1() -
TransactionMetaV1
Creates a newTransactionMetaV1instance.- Parameters:
txChanges- thetxChangesfield valueoperations- theoperationsfield 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
- 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
-
getTxChanges
Value of thetxChangesfield.- Returns:
- the
txChangesfield value
-
getOperations
Value of theoperationsfield.- Returns:
- the
operationsfield value
-
setTxChanges
Value of thetxChangesfield.- Parameters:
txChanges- thetxChangesfield value
-
setOperations
Value of theoperationsfield.- Parameters:
operations- theoperationsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-