public final class AssetTypeCreditAlphaNum4 extends AssetTypeCreditAlphaNum
Constructor and Description |
---|
AssetTypeCreditAlphaNum4(java.lang.String code,
java.lang.String issuer)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NonNull Asset other)
Compares two assets.
|
static AssetTypeCreditAlphaNum4 |
fromXdr(AlphaNum4 alphaNum4) |
AssetType |
getType()
Returns asset type.
|
Asset |
toXdr()
Generates XDR object from a given Asset object
|
equals, getCode, getIssuer, hashCode, toString
create, create, createNativeAsset, createNonNativeAsset, fromXdr, getContractId
public AssetTypeCreditAlphaNum4(java.lang.String code, java.lang.String issuer)
code
- Asset codeissuer
- Asset issuerjava.lang.IllegalArgumentException
- when code is invalidpublic static AssetTypeCreditAlphaNum4 fromXdr(AlphaNum4 alphaNum4)
public Asset toXdr()
Asset