Package org.stellar.sdk.xdr
Class LiquidityPoolWithdrawOp
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolWithdrawOp
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 -
Constructor Summary
ConstructorsConstructorDescriptionLiquidityPoolWithdrawOp(PoolID liquidityPoolID, Int64 amount, Int64 minAmountA, Int64 minAmountB) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LiquidityPoolWithdrawOpdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LiquidityPoolWithdrawOpfromXdrBase64(String xdr) static LiquidityPoolWithdrawOpfromXdrByteArray(byte[] xdr) inthashCode()voidvoidsetLiquidityPoolID(PoolID liquidityPoolID) voidsetMinAmountA(Int64 minAmountA) voidsetMinAmountB(Int64 minAmountB) toString()default Stringdefault byte[]
-
Constructor Details
-
LiquidityPoolWithdrawOp
public LiquidityPoolWithdrawOp() -
LiquidityPoolWithdrawOp
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLiquidityPoolID
-
getAmount
-
getMinAmountA
-
getMinAmountB
-
setLiquidityPoolID
-
setAmount
-
setMinAmountA
-
setMinAmountB
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-