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