public enum ContractExecutableType extends java.lang.Enum<ContractExecutableType> implements XdrElement
enum ContractExecutableType
{
CONTRACT_EXECUTABLE_WASM = 0,
CONTRACT_EXECUTABLE_STELLAR_ASSET = 1
};
| Enum Constant and Description |
|---|
CONTRACT_EXECUTABLE_STELLAR_ASSET |
CONTRACT_EXECUTABLE_WASM |
| Modifier and Type | Method and Description |
|---|---|
static ContractExecutableType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ContractExecutableType |
fromXdrBase64(java.lang.String xdr) |
static ContractExecutableType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ContractExecutableType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContractExecutableType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoXdrBase64, toXdrByteArraypublic static final ContractExecutableType CONTRACT_EXECUTABLE_WASM
public static final ContractExecutableType CONTRACT_EXECUTABLE_STELLAR_ASSET
public static ContractExecutableType[] values()
for (ContractExecutableType c : ContractExecutableType.values()) System.out.println(c);
public static ContractExecutableType 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 ContractExecutableType decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static ContractExecutableType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static ContractExecutableType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException