public class AssetCode extends java.lang.Object implements XdrElement
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 };
Modifier and Type | Class and Description |
---|---|
static class |
AssetCode.AssetCodeBuilder |
Constructor and Description |
---|
AssetCode() |
AssetCode(AssetType discriminant,
AssetCode4 assetCode4,
AssetCode12 assetCode12) |
Modifier and Type | Method and Description |
---|---|
static AssetCode.AssetCodeBuilder |
builder() |
static AssetCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static AssetCode |
fromXdrBase64(java.lang.String xdr) |
static AssetCode |
fromXdrByteArray(byte[] xdr) |
AssetCode12 |
getAssetCode12() |
AssetCode4 |
getAssetCode4() |
AssetType |
getDiscriminant() |
int |
hashCode() |
void |
setAssetCode12(AssetCode12 assetCode12) |
void |
setAssetCode4(AssetCode4 assetCode4) |
void |
setDiscriminant(AssetType discriminant) |
AssetCode.AssetCodeBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public AssetCode()
public AssetCode(AssetType discriminant, AssetCode4 assetCode4, AssetCode12 assetCode12)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static AssetCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static AssetCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AssetCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static AssetCode.AssetCodeBuilder builder()
public AssetCode.AssetCodeBuilder toBuilder()
public AssetType getDiscriminant()
public AssetCode4 getAssetCode4()
public AssetCode12 getAssetCode12()
public void setDiscriminant(AssetType discriminant)
public void setAssetCode4(AssetCode4 assetCode4)
public void setAssetCode12(AssetCode12 assetCode12)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object