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