Package org.stellar.sdk.xdr
Class TransactionMetaV2
java.lang.Object
org.stellar.sdk.xdr.TransactionMetaV2
- All Implemented Interfaces:
XdrElement
TransactionMetaV2's original definition in the XDR file is:
struct TransactionMetaV2
{
LedgerEntryChanges txChangesBefore; // tx level changes before operations
// are applied if any
OperationMeta operations<>; // meta for each operation
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
// applied if any
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionMetaV2(LedgerEntryChanges txChangesBefore, OperationMeta[] operations, LedgerEntryChanges txChangesAfter) Creates a newTransactionMetaV2instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionMetaV2decode(XdrDataInputStream stream) static TransactionMetaV2decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionMetaV2static TransactionMetaV2fromXdrBase64(String xdr) static TransactionMetaV2fromXdrByteArray(byte[] xdr) Value of theoperationsfield.Value of thetxChangesAfterfield.Value of thetxChangesBeforefield.inthashCode()voidsetOperations(OperationMeta[] operations) Value of theoperationsfield.voidsetTxChangesAfter(LedgerEntryChanges txChangesAfter) Value of thetxChangesAfterfield.voidsetTxChangesBefore(LedgerEntryChanges txChangesBefore) Value of thetxChangesBeforefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionMetaV2
public TransactionMetaV2() -
TransactionMetaV2
public TransactionMetaV2(LedgerEntryChanges txChangesBefore, OperationMeta[] operations, LedgerEntryChanges txChangesAfter) Creates a newTransactionMetaV2instance.- Parameters:
txChangesBefore- thetxChangesBeforefield valueoperations- theoperationsfield valuetxChangesAfter- thetxChangesAfterfield 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
-
getTxChangesBefore
Value of thetxChangesBeforefield.- Returns:
- the
txChangesBeforefield value
-
getOperations
Value of theoperationsfield.- Returns:
- the
operationsfield value
-
getTxChangesAfter
Value of thetxChangesAfterfield.- Returns:
- the
txChangesAfterfield value
-
setTxChangesBefore
Value of thetxChangesBeforefield.- Parameters:
txChangesBefore- thetxChangesBeforefield value
-
setOperations
Value of theoperationsfield.- Parameters:
operations- theoperationsfield value
-
setTxChangesAfter
Value of thetxChangesAfterfield.- Parameters:
txChangesAfter- thetxChangesAfterfield value
-
equals
-
hashCode
public int hashCode() -
toString
-