public enum AssetType extends java.lang.Enum<AssetType> implements XdrElement
enum AssetType { ASSET_TYPE_NATIVE = 0, ASSET_TYPE_CREDIT_ALPHANUM4 = 1, ASSET_TYPE_CREDIT_ALPHANUM12 = 2, ASSET_TYPE_POOL_SHARE = 3 };
Enum Constant and Description |
---|
ASSET_TYPE_CREDIT_ALPHANUM12 |
ASSET_TYPE_CREDIT_ALPHANUM4 |
ASSET_TYPE_NATIVE |
ASSET_TYPE_POOL_SHARE |
Modifier and Type | Method and Description |
---|---|
static AssetType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static AssetType |
fromXdrBase64(java.lang.String xdr) |
static AssetType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static AssetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AssetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final AssetType ASSET_TYPE_NATIVE
public static final AssetType ASSET_TYPE_CREDIT_ALPHANUM4
public static final AssetType ASSET_TYPE_CREDIT_ALPHANUM12
public static final AssetType ASSET_TYPE_POOL_SHARE
public static AssetType[] values()
for (AssetType c : AssetType.values()) System.out.println(c);
public static AssetType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static AssetType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static AssetType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static AssetType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException