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