public abstract class AssetTypeCreditAlphaNum extends Asset
AssetTypeCreditAlphaNum4
and AssetTypeCreditAlphaNum12
subclasses.Constructor and Description |
---|
AssetTypeCreditAlphaNum(@NonNull java.lang.String code,
@NonNull java.lang.String issuer)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getCode()
Asset code
|
@NonNull java.lang.String |
getIssuer()
Asset issuer
|
int |
hashCode() |
java.lang.String |
toString() |
compareTo, create, create, createNativeAsset, createNonNativeAsset, fromXdr, getContractId, getType, toXdr
public AssetTypeCreditAlphaNum(@NonNull @NonNull java.lang.String code, @NonNull @NonNull java.lang.String issuer)
code
- Asset codeissuer
- Asset issuerjava.lang.IllegalArgumentException
- when the issuer is not a valid Ed25519 public key.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public @NonNull java.lang.String getCode()
@NonNull public @NonNull java.lang.String getIssuer()