Package org.stellar.sdk.xdr
Class LiquidityPoolParameters
java.lang.Object
org.stellar.sdk.xdr.LiquidityPoolParameters
LiquidityPoolParameters's original definition in the XDR file is:
union LiquidityPoolParameters switch (LiquidityPoolType type) { case LIQUIDITY_POOL_CONSTANT_PRODUCT: LiquidityPoolConstantProductParameters constantProduct; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionLiquidityPoolParameters
(LiquidityPoolType discriminant, LiquidityPoolConstantProductParameters constantProduct) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static LiquidityPoolParameters
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LiquidityPoolParameters
fromXdrBase64
(String xdr) static LiquidityPoolParameters
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setConstantProduct
(LiquidityPoolConstantProductParameters constantProduct) void
setDiscriminant
(LiquidityPoolType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
LiquidityPoolParameters
public LiquidityPoolParameters() -
LiquidityPoolParameters
public LiquidityPoolParameters(LiquidityPoolType discriminant, LiquidityPoolConstantProductParameters constantProduct)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getConstantProduct
-
setDiscriminant
-
setConstantProduct
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-