Package org.stellar.sdk.xdr
Class AssetCode
java.lang.Object
org.stellar.sdk.xdr.AssetCode
AssetCode's original definition in the XDR file is:
union AssetCode switch (AssetType type) { case ASSET_TYPE_CREDIT_ALPHANUM4: AssetCode4 assetCode4; case ASSET_TYPE_CREDIT_ALPHANUM12: AssetCode12 assetCode12; // add other asset types here in the future };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionAssetCode
(AssetType discriminant, AssetCode4 assetCode4, AssetCode12 assetCode12) -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetCode.AssetCodeBuilder
builder()
static AssetCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static AssetCode
fromXdrBase64
(String xdr) static AssetCode
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setAssetCode12
(AssetCode12 assetCode12) void
setAssetCode4
(AssetCode4 assetCode4) void
setDiscriminant
(AssetType discriminant) toString()
default String
default byte[]
-
Constructor Details
-
AssetCode
public AssetCode() -
AssetCode
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAssetCode4
-
getAssetCode12
-
setDiscriminant
-
setAssetCode4
-
setAssetCode12
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-