Package org.stellar.sdk.xdr
Class ClaimLiquidityAtom
java.lang.Object
org.stellar.sdk.xdr.ClaimLiquidityAtom
- All Implemented Interfaces:
XdrElement
ClaimLiquidityAtom's original definition in the XDR file is:
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;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ClaimLiquidityAtomdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ClaimLiquidityAtomfromXdrBase64(String xdr) static ClaimLiquidityAtomfromXdrByteArray(byte[] xdr) inthashCode()voidsetAmountBought(Int64 amountBought) voidsetAmountSold(Int64 amountSold) voidsetAssetBought(Asset assetBought) voidsetAssetSold(Asset assetSold) voidsetLiquidityPoolID(PoolID liquidityPoolID) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ClaimLiquidityAtom
public ClaimLiquidityAtom() -
ClaimLiquidityAtom
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLiquidityPoolID
-
getAssetSold
-
getAmountSold
-
getAssetBought
-
getAmountBought
-
setLiquidityPoolID
-
setAssetSold
-
setAmountSold
-
setAssetBought
-
setAmountBought
-
equals
-
hashCode
public int hashCode() -
toString
-