Package org.stellar.sdk
Class LiquidityPoolID
java.lang.Object
org.stellar.sdk.LiquidityPoolID
Base LiquidityPoolID class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLiquidityPoolID(byte[] hash) LiquidityPoolID(String hex) Creates LiquidityPoolID object from a given hex-encoded pool ID.LiquidityPoolID(LiquidityPoolType type, Asset a, Asset b, int fee) Creates LiquidityPoolID object from a given parameters. -
Method Summary
-
Constructor Details
-
LiquidityPoolID
Creates LiquidityPoolID object from a given parameters.- Parameters:
type- The type of the poola- First asset in the poolb- Second asset in the poolfee- Fee amount in base-points
-
LiquidityPoolID
Creates LiquidityPoolID object from a given hex-encoded pool ID.- Parameters:
hex- hex string
-
LiquidityPoolID
public LiquidityPoolID(byte[] hash)
-
-
Method Details
-
fromXdr
Generates LiquidityPoolID object from a given XDR object- Parameters:
xdr- XDR object
-
toString
-
toXdr
Generates XDR object from a given LiquidityPoolID object -
equals
-
hashCode
public int hashCode()
-