public enum BumpSequenceResultCode extends java.lang.Enum<BumpSequenceResultCode> implements XdrElement
enum BumpSequenceResultCode { // codes considered as "success" for the operation BUMP_SEQUENCE_SUCCESS = 0, // codes considered as "failure" for the operation BUMP_SEQUENCE_BAD_SEQ = -1 // `bumpTo` is not within bounds };
Enum Constant and Description |
---|
BUMP_SEQUENCE_BAD_SEQ |
BUMP_SEQUENCE_SUCCESS |
Modifier and Type | Method and Description |
---|---|
static BumpSequenceResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static BumpSequenceResultCode |
fromXdrBase64(java.lang.String xdr) |
static BumpSequenceResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static BumpSequenceResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BumpSequenceResultCode[] |
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 BumpSequenceResultCode BUMP_SEQUENCE_SUCCESS
public static final BumpSequenceResultCode BUMP_SEQUENCE_BAD_SEQ
public static BumpSequenceResultCode[] values()
for (BumpSequenceResultCode c : BumpSequenceResultCode.values()) System.out.println(c);
public static BumpSequenceResultCode 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 BumpSequenceResultCode 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 BumpSequenceResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static BumpSequenceResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException