public enum LedgerEntryChangeType extends java.lang.Enum<LedgerEntryChangeType> implements XdrElement
enum LedgerEntryChangeType { LEDGER_ENTRY_CREATED = 0, // entry was added to the ledger LEDGER_ENTRY_UPDATED = 1, // entry was modified in the ledger LEDGER_ENTRY_REMOVED = 2, // entry was removed from the ledger LEDGER_ENTRY_STATE = 3, // value of the entry LEDGER_ENTRY_RESTORED = 4 // archived entry was restored in the ledger };
Enum Constant and Description |
---|
LEDGER_ENTRY_CREATED |
LEDGER_ENTRY_REMOVED |
LEDGER_ENTRY_RESTORED |
LEDGER_ENTRY_STATE |
LEDGER_ENTRY_UPDATED |
Modifier and Type | Method and Description |
---|---|
static LedgerEntryChangeType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static LedgerEntryChangeType |
fromXdrBase64(java.lang.String xdr) |
static LedgerEntryChangeType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static LedgerEntryChangeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LedgerEntryChangeType[] |
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 LedgerEntryChangeType LEDGER_ENTRY_CREATED
public static final LedgerEntryChangeType LEDGER_ENTRY_UPDATED
public static final LedgerEntryChangeType LEDGER_ENTRY_REMOVED
public static final LedgerEntryChangeType LEDGER_ENTRY_STATE
public static final LedgerEntryChangeType LEDGER_ENTRY_RESTORED
public static LedgerEntryChangeType[] values()
for (LedgerEntryChangeType c : LedgerEntryChangeType.values()) System.out.println(c);
public static LedgerEntryChangeType 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 LedgerEntryChangeType 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 LedgerEntryChangeType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntryChangeType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException