Package org.stellar.sdk.xdr
Class TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction
java.lang.Object
org.stellar.sdk.xdr.TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction
- All Implemented Interfaces:
XdrElement
- Enclosing class:
TransactionSignaturePayload
public static class TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction
extends Object
implements XdrElement
TransactionSignaturePayloadTaggedTransaction's original definition in the XDR file is:
union switch (EnvelopeType type)
{
// Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0
case ENVELOPE_TYPE_TX:
Transaction tx;
case ENVELOPE_TYPE_TX_FEE_BUMP:
FeeBumpTransaction feeBump;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionSignaturePayloadTaggedTransaction(EnvelopeType discriminant, Transaction tx, FeeBumpTransaction feeBump) Creates a newTransactionSignaturePayloadTaggedTransactioninstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of thefeeBumpfield.getTx()Value of thetxfield.inthashCode()voidsetDiscriminant(EnvelopeType discriminant) Value of thediscriminantfield.voidsetFeeBump(FeeBumpTransaction feeBump) Value of thefeeBumpfield.voidsetTx(Transaction tx) Value of thetxfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionSignaturePayloadTaggedTransaction
public TransactionSignaturePayloadTaggedTransaction() -
TransactionSignaturePayloadTaggedTransaction
public TransactionSignaturePayloadTaggedTransaction(EnvelopeType discriminant, Transaction tx, FeeBumpTransaction feeBump) Creates a newTransactionSignaturePayloadTaggedTransactioninstance.- Parameters:
discriminant- thediscriminantfield valuetx- thetxfield valuefeeBump- thefeeBumpfield 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 TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
public static TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction fromJson(String json) -
builder
-
toBuilder
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getTx
Value of thetxfield.- Returns:
- the
txfield value
-
getFeeBump
Value of thefeeBumpfield.- Returns:
- the
feeBumpfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setTx
Value of thetxfield.- Parameters:
tx- thetxfield value
-
setFeeBump
Value of thefeeBumpfield.- Parameters:
feeBump- thefeeBumpfield value
-
equals
-
hashCode
public int hashCode() -
toString
-