Package org.stellar.sdk.xdr
Class TxSetComponent.TxSetComponentTxsMaybeDiscountedFee
java.lang.Object
org.stellar.sdk.xdr.TxSetComponent.TxSetComponentTxsMaybeDiscountedFee
- All Implemented Interfaces:
XdrElement
- Enclosing class:
TxSetComponent
public static class TxSetComponent.TxSetComponentTxsMaybeDiscountedFee
extends Object
implements XdrElement
TxSetComponentTxsMaybeDiscountedFee's original definition in the XDR file is:
struct
{
int64* baseFee;
TransactionEnvelope txs<>;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTxSetComponentTxsMaybeDiscountedFee(Int64 baseFee, TransactionEnvelope[] txs) Creates a newTxSetComponentTxsMaybeDiscountedFeeinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic TxSetComponent.TxSetComponentTxsMaybeDiscountedFee.TxSetComponentTxsMaybeDiscountedFeeBuilderbuilder()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 thebaseFeefield.getTxs()Value of thetxsfield.inthashCode()voidsetBaseFee(Int64 baseFee) Value of thebaseFeefield.voidsetTxs(TransactionEnvelope[] txs) Value of thetxsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TxSetComponentTxsMaybeDiscountedFee
public TxSetComponentTxsMaybeDiscountedFee() -
TxSetComponentTxsMaybeDiscountedFee
Creates a newTxSetComponentTxsMaybeDiscountedFeeinstance.- Parameters:
baseFee- thebaseFeefield valuetxs- thetxsfield 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 TxSetComponent.TxSetComponentTxsMaybeDiscountedFee decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static TxSetComponent.TxSetComponentTxsMaybeDiscountedFee decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static TxSetComponent.TxSetComponentTxsMaybeDiscountedFee fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static TxSetComponent.TxSetComponentTxsMaybeDiscountedFee 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
-
builder
public static TxSetComponent.TxSetComponentTxsMaybeDiscountedFee.TxSetComponentTxsMaybeDiscountedFeeBuilder builder() -
toBuilder
-
getBaseFee
Value of thebaseFeefield.- Returns:
- the
baseFeefield value
-
getTxs
Value of thetxsfield.- Returns:
- the
txsfield value
-
setBaseFee
Value of thebaseFeefield.- Parameters:
baseFee- thebaseFeefield value
-
setTxs
Value of thetxsfield.- Parameters:
txs- thetxsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-