Class LiquidityPoolID

java.lang.Object
org.stellar.sdk.LiquidityPoolID

public final class LiquidityPoolID extends Object
Base LiquidityPoolID class.
See Also:
  • Constructor Details

    • LiquidityPoolID

      public LiquidityPoolID(LiquidityPoolType type, Asset a, Asset b, int fee)
      Creates LiquidityPoolID object from a given parameters.
      Parameters:
      type - The type of the pool
      a - First asset in the pool
      b - Second asset in the pool
      fee - Fee amount in base-points
    • LiquidityPoolID

      public LiquidityPoolID(String hex)
      Creates LiquidityPoolID object from a given hex-encoded pool ID.
      Parameters:
      hex - hex string
    • LiquidityPoolID

      public LiquidityPoolID(byte[] hash)
  • Method Details

    • fromXdr

      public static LiquidityPoolID fromXdr(PoolID xdr)
      Generates LiquidityPoolID object from a given XDR object
      Parameters:
      xdr - XDR object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toXdr

      public PoolID toXdr()
      Generates XDR object from a given LiquidityPoolID object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object