Package org.stellar.sdk.xdr
Class LiquidityPoolWithdrawOp
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolWithdrawOp
- All Implemented Interfaces:
XdrElement
LiquidityPoolWithdrawOp's original definition in the XDR file is:
struct LiquidityPoolWithdrawOp
{
PoolID liquidityPoolID;
int64 amount; // amount of pool shares to withdraw
int64 minAmountA; // minimum amount of first asset to withdraw
int64 minAmountB; // minimum amount of second asset to withdraw
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLiquidityPoolWithdrawOp(PoolID liquidityPoolID, Int64 amount, Int64 minAmountA, Int64 minAmountB) Creates a newLiquidityPoolWithdrawOpinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LiquidityPoolWithdrawOpdecode(XdrDataInputStream stream) static LiquidityPoolWithdrawOpdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LiquidityPoolWithdrawOpstatic LiquidityPoolWithdrawOpfromXdrBase64(String xdr) static LiquidityPoolWithdrawOpfromXdrByteArray(byte[] xdr) Value of theamountfield.Value of theliquidityPoolIDfield.Value of theminAmountAfield.Value of theminAmountBfield.inthashCode()voidValue of theamountfield.voidsetLiquidityPoolID(PoolID liquidityPoolID) Value of theliquidityPoolIDfield.voidsetMinAmountA(Int64 minAmountA) Value of theminAmountAfield.voidsetMinAmountB(Int64 minAmountB) Value of theminAmountBfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LiquidityPoolWithdrawOp
public LiquidityPoolWithdrawOp() -
LiquidityPoolWithdrawOp
public LiquidityPoolWithdrawOp(PoolID liquidityPoolID, Int64 amount, Int64 minAmountA, Int64 minAmountB) Creates a newLiquidityPoolWithdrawOpinstance.- Parameters:
liquidityPoolID- theliquidityPoolIDfield valueamount- theamountfield valueminAmountA- theminAmountAfield valueminAmountB- theminAmountBfield 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 LiquidityPoolWithdrawOp decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getLiquidityPoolID
Value of theliquidityPoolIDfield.- Returns:
- the
liquidityPoolIDfield value
-
getAmount
Value of theamountfield.- Returns:
- the
amountfield value
-
getMinAmountA
Value of theminAmountAfield.- Returns:
- the
minAmountAfield value
-
getMinAmountB
Value of theminAmountBfield.- Returns:
- the
minAmountBfield value
-
setLiquidityPoolID
Value of theliquidityPoolIDfield.- Parameters:
liquidityPoolID- theliquidityPoolIDfield value
-
setAmount
Value of theamountfield.- Parameters:
amount- theamountfield value
-
setMinAmountA
Value of theminAmountAfield.- Parameters:
minAmountA- theminAmountAfield value
-
setMinAmountB
Value of theminAmountBfield.- Parameters:
minAmountB- theminAmountBfield value
-
equals
-
hashCode
public int hashCode() -
toString
-