Package org.stellar.sdk.xdr
Class LiquidityPoolEntry.LiquidityPoolEntryBody
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolEntry.LiquidityPoolEntryBody
- Enclosing class:
LiquidityPoolEntry
LiquidityPoolEntryBody's original definition in the XDR file is:
union switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: struct { LiquidityPoolConstantProductParameters params; int64 reserveA; // amount of A in the pool int64 reserveB; // amount of B in the pool int64 totalPoolShares; // total number of pool shares issued int64 poolSharesTrustLineCount; // number of trust lines for the // associated pool shares } constantProduct; }
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
LiquidityPoolEntryConstantProduct's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionLiquidityPoolEntryBody
(LiquidityPoolType discriminant, LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct constantProduct) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
fromXdrBase64
(String xdr) fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setConstantProduct
(LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct constantProduct) void
setDiscriminant
(LiquidityPoolType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
LiquidityPoolEntryBody
public LiquidityPoolEntryBody() -
LiquidityPoolEntryBody
public LiquidityPoolEntryBody(LiquidityPoolType discriminant, LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct constantProduct)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
public static LiquidityPoolEntry.LiquidityPoolEntryBody decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
public static LiquidityPoolEntry.LiquidityPoolEntryBody fromXdrBase64(String xdr) throws IOException - Throws:
IOException
-
fromXdrByteArray
public static LiquidityPoolEntry.LiquidityPoolEntryBody fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getConstantProduct
public LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct getConstantProduct() -
setDiscriminant
-
setConstantProduct
public void setConstantProduct(LiquidityPoolEntry.LiquidityPoolEntryBody.LiquidityPoolEntryConstantProduct constantProduct) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-