public class LiquidityPoolWithdrawOp extends java.lang.Object implements XdrElement
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 };
Modifier and Type | Class and Description |
---|---|
static class |
LiquidityPoolWithdrawOp.LiquidityPoolWithdrawOpBuilder |
Constructor and Description |
---|
LiquidityPoolWithdrawOp() |
LiquidityPoolWithdrawOp(PoolID liquidityPoolID,
Int64 amount,
Int64 minAmountA,
Int64 minAmountB) |
Modifier and Type | Method and Description |
---|---|
static LiquidityPoolWithdrawOp.LiquidityPoolWithdrawOpBuilder |
builder() |
static LiquidityPoolWithdrawOp |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static LiquidityPoolWithdrawOp |
fromXdrBase64(java.lang.String xdr) |
static LiquidityPoolWithdrawOp |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmount() |
PoolID |
getLiquidityPoolID() |
Int64 |
getMinAmountA() |
Int64 |
getMinAmountB() |
int |
hashCode() |
void |
setAmount(Int64 amount) |
void |
setLiquidityPoolID(PoolID liquidityPoolID) |
void |
setMinAmountA(Int64 minAmountA) |
void |
setMinAmountB(Int64 minAmountB) |
LiquidityPoolWithdrawOp.LiquidityPoolWithdrawOpBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LiquidityPoolWithdrawOp decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LiquidityPoolWithdrawOp fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolWithdrawOp fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolWithdrawOp.LiquidityPoolWithdrawOpBuilder builder()
public LiquidityPoolWithdrawOp.LiquidityPoolWithdrawOpBuilder toBuilder()
public PoolID getLiquidityPoolID()
public Int64 getAmount()
public Int64 getMinAmountA()
public Int64 getMinAmountB()
public void setLiquidityPoolID(PoolID liquidityPoolID)
public void setAmount(Int64 amount)
public void setMinAmountA(Int64 minAmountA)
public void setMinAmountB(Int64 minAmountB)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object