Package org.stellar.sdk.xdr
Class LiquidityPoolEntry
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolEntry
- All Implemented Interfaces:
XdrElement
LiquidityPoolEntry's original definition in the XDR file is:
struct LiquidityPoolEntry
{
PoolID liquidityPoolID;
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;
}
body;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLiquidityPoolEntryBody's original definition in the XDR file is:static class -
Constructor Summary
ConstructorsConstructorDescriptionLiquidityPoolEntry(PoolID liquidityPoolID, LiquidityPoolEntry.LiquidityPoolEntryBody body) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LiquidityPoolEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LiquidityPoolEntryfromXdrBase64(String xdr) static LiquidityPoolEntryfromXdrByteArray(byte[] xdr) getBody()inthashCode()voidvoidsetLiquidityPoolID(PoolID liquidityPoolID) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LiquidityPoolEntry
public LiquidityPoolEntry() -
LiquidityPoolEntry
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLiquidityPoolID
-
getBody
-
setLiquidityPoolID
-
setBody
-
equals
-
hashCode
public int hashCode() -
toString
-