Class AssetTypeNative

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

public final class AssetTypeNative extends Asset
Represents Stellar native asset - lumens (XLM)
See Also:
  • Constructor Details

    • AssetTypeNative

      public AssetTypeNative()
  • 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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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