Package org.stellar.sdk
Class AssetTypeNative
java.lang.Object
org.stellar.sdk.Asset
org.stellar.sdk.AssetTypeNative
- All Implemented Interfaces:
Comparable<Asset>
Represents Stellar native asset - Lumens
(XLM)
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.stellar.sdk.Asset
create, create, createNativeAsset, createNonNativeAsset, fromXdr, getContractId
-
Constructor Details
-
AssetTypeNative
public AssetTypeNative()
-
-
Method Details
-
toString
-
getType
Description copied from class:Asset
Returns asset type. -
equals
-
hashCode
public int hashCode() -
toXdr
Description copied from class:Asset
Generates XDR object from a given Asset object -
compareTo
Description copied from class:Asset
Compares two assets.- First compare the type (eg. native before alphanum4 before alphanum12).
- If the types are equal, compare the assets codes.
- If the asset codes are equal, compare the issuers.
- Specified by:
compareTo
in interfaceComparable<Asset>
- Specified by:
compareTo
in classAsset
- Parameters:
other
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-