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