Package org.stellar.sdk.xdr
Class TxSetComponent
java.lang.Object
org.stellar.sdk.xdr.TxSetComponent
- All Implemented Interfaces:
XdrElement
TxSetComponent's original definition in the XDR file is:
union TxSetComponent switch (TxSetComponentType type)
{
case TXSET_COMP_TXS_MAYBE_DISCOUNTED_FEE:
struct
{
int64* baseFee;
TransactionEnvelope txs<>;
} txsMaybeDiscountedFee;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTxSetComponentTxsMaybeDiscountedFee's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTxSetComponent(TxSetComponentType discriminant, TxSetComponent.TxSetComponentTxsMaybeDiscountedFee txsMaybeDiscountedFee) Creates a newTxSetComponentinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TxSetComponentdecode(XdrDataInputStream stream) static TxSetComponentdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TxSetComponentstatic TxSetComponentfromXdrBase64(String xdr) static TxSetComponentfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of thetxsMaybeDiscountedFeefield.inthashCode()voidsetDiscriminant(TxSetComponentType discriminant) Value of thediscriminantfield.voidsetTxsMaybeDiscountedFee(TxSetComponent.TxSetComponentTxsMaybeDiscountedFee txsMaybeDiscountedFee) Value of thetxsMaybeDiscountedFeefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TxSetComponent
public TxSetComponent() -
TxSetComponent
public TxSetComponent(TxSetComponentType discriminant, TxSetComponent.TxSetComponentTxsMaybeDiscountedFee txsMaybeDiscountedFee) Creates a newTxSetComponentinstance.- Parameters:
discriminant- thediscriminantfield valuetxsMaybeDiscountedFee- thetxsMaybeDiscountedFeefield 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getTxsMaybeDiscountedFee
Value of thetxsMaybeDiscountedFeefield.- Returns:
- the
txsMaybeDiscountedFeefield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setTxsMaybeDiscountedFee
public void setTxsMaybeDiscountedFee(TxSetComponent.TxSetComponentTxsMaybeDiscountedFee txsMaybeDiscountedFee) Value of thetxsMaybeDiscountedFeefield.- Parameters:
txsMaybeDiscountedFee- thetxsMaybeDiscountedFeefield value
-
equals
-
hashCode
public int hashCode() -
toString
-