Class AssetTypePoolShare

java.lang.Object
org.stellar.sdk.Asset
org.stellar.sdk.AssetTypePoolShare
All Implemented Interfaces:
Comparable<Asset>

public final class AssetTypePoolShare extends Asset
Represents Stellar liquidity pool share asset - lumens (XLM)
See Also:
  • Constructor Details

    • AssetTypePoolShare

      public AssetTypePoolShare(@NonNull @NonNull String poolId)
  • Method Details

    • toString

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

      public String getType()
      Description copied from class: Asset
      Returns asset type. Possible types:
      • native
      • credit_alphanum4
      • credit_alphanum12
      • liquidity_pool_shares
      Specified by:
      getType in class Asset
    • toXdr

      public Asset toXdr()
      Description copied from class: Asset
      Generates XDR object from a given Asset object
      Specified by:
      toXdr in class Asset
    • compareTo

      public int compareTo(@NonNull @NonNull Asset other)
      Specified by:
      compareTo in interface Comparable<Asset>
      Specified by:
      compareTo in class Asset
    • getPoolId

      @NonNull public @NonNull String getPoolId()
      The pool ID of the liquidity pool share asset
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class Asset
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object