public class ClaimLiquidityAtom extends java.lang.Object implements XdrElement
struct ClaimLiquidityAtom { PoolID liquidityPoolID; // amount and asset taken from the pool Asset assetSold; int64 amountSold; // amount and asset sent to the pool Asset assetBought; int64 amountBought; };
Modifier and Type | Class and Description |
---|---|
static class |
ClaimLiquidityAtom.ClaimLiquidityAtomBuilder |
Constructor and Description |
---|
ClaimLiquidityAtom() |
ClaimLiquidityAtom(PoolID liquidityPoolID,
Asset assetSold,
Int64 amountSold,
Asset assetBought,
Int64 amountBought) |
Modifier and Type | Method and Description |
---|---|
static ClaimLiquidityAtom.ClaimLiquidityAtomBuilder |
builder() |
static ClaimLiquidityAtom |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static ClaimLiquidityAtom |
fromXdrBase64(java.lang.String xdr) |
static ClaimLiquidityAtom |
fromXdrByteArray(byte[] xdr) |
Int64 |
getAmountBought() |
Int64 |
getAmountSold() |
Asset |
getAssetBought() |
Asset |
getAssetSold() |
PoolID |
getLiquidityPoolID() |
int |
hashCode() |
void |
setAmountBought(Int64 amountBought) |
void |
setAmountSold(Int64 amountSold) |
void |
setAssetBought(Asset assetBought) |
void |
setAssetSold(Asset assetSold) |
void |
setLiquidityPoolID(PoolID liquidityPoolID) |
ClaimLiquidityAtom.ClaimLiquidityAtomBuilder |
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 ClaimLiquidityAtom decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ClaimLiquidityAtom fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ClaimLiquidityAtom fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ClaimLiquidityAtom.ClaimLiquidityAtomBuilder builder()
public ClaimLiquidityAtom.ClaimLiquidityAtomBuilder toBuilder()
public PoolID getLiquidityPoolID()
public Asset getAssetSold()
public Int64 getAmountSold()
public Asset getAssetBought()
public Int64 getAmountBought()
public void setLiquidityPoolID(PoolID liquidityPoolID)
public void setAssetSold(Asset assetSold)
public void setAmountSold(Int64 amountSold)
public void setAssetBought(Asset assetBought)
public void setAmountBought(Int64 amountBought)
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