public enum ContractEventType extends java.lang.Enum<ContractEventType> implements XdrElement
enum ContractEventType { SYSTEM = 0, CONTRACT = 1, DIAGNOSTIC = 2 };
Enum Constant and Description |
---|
CONTRACT |
DIAGNOSTIC |
SYSTEM |
Modifier and Type | Method and Description |
---|---|
static ContractEventType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static ContractEventType |
fromXdrBase64(java.lang.String xdr) |
static ContractEventType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static ContractEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ContractEventType[] |
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 ContractEventType SYSTEM
public static final ContractEventType CONTRACT
public static final ContractEventType DIAGNOSTIC
public static ContractEventType[] values()
for (ContractEventType c : ContractEventType.values()) System.out.println(c);
public static ContractEventType 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 ContractEventType 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 ContractEventType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ContractEventType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException