Package org.stellar.sdk.xdr
Class FeeBumpTransaction
java.lang.Object
org.stellar.sdk.xdr.FeeBumpTransaction
- All Implemented Interfaces:
XdrElement
FeeBumpTransaction's original definition in the XDR file is:
struct FeeBumpTransaction
{
MuxedAccount feeSource;
int64 fee;
union switch (EnvelopeType type)
{
case ENVELOPE_TYPE_TX:
TransactionV1Envelope v1;
}
innerTx;
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classFeeBumpTransactionExt's original definition in the XDR file is:static classFeeBumpTransactionInnerTx's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionFeeBumpTransaction(MuxedAccount feeSource, Int64 fee, FeeBumpTransaction.FeeBumpTransactionInnerTx innerTx, FeeBumpTransaction.FeeBumpTransactionExt ext) Creates a newFeeBumpTransactioninstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static FeeBumpTransactiondecode(XdrDataInputStream stream) static FeeBumpTransactiondecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic FeeBumpTransactionstatic FeeBumpTransactionfromXdrBase64(String xdr) static FeeBumpTransactionfromXdrByteArray(byte[] xdr) getExt()Value of theextfield.getFee()Value of thefeefield.Value of thefeeSourcefield.Value of theinnerTxfield.inthashCode()voidValue of theextfield.voidValue of thefeefield.voidsetFeeSource(MuxedAccount feeSource) Value of thefeeSourcefield.voidValue of theinnerTxfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
FeeBumpTransaction
public FeeBumpTransaction() -
FeeBumpTransaction
public FeeBumpTransaction(MuxedAccount feeSource, Int64 fee, FeeBumpTransaction.FeeBumpTransactionInnerTx innerTx, FeeBumpTransaction.FeeBumpTransactionExt ext) Creates a newFeeBumpTransactioninstance.- Parameters:
feeSource- thefeeSourcefield valuefee- thefeefield valueinnerTx- theinnerTxfield valueext- theextfield 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
-
getFeeSource
Value of thefeeSourcefield.- Returns:
- the
feeSourcefield value
-
getFee
Value of thefeefield.- Returns:
- the
feefield value
-
getInnerTx
Value of theinnerTxfield.- Returns:
- the
innerTxfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setFeeSource
Value of thefeeSourcefield.- Parameters:
feeSource- thefeeSourcefield value
-
setFee
Value of thefeefield.- Parameters:
fee- thefeefield value
-
setInnerTx
Value of theinnerTxfield.- Parameters:
innerTx- theinnerTxfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-