public enum LedgerEntryType extends java.lang.Enum<LedgerEntryType> implements XdrElement
enum LedgerEntryType { ACCOUNT = 0, TRUSTLINE = 1, OFFER = 2, DATA = 3, CLAIMABLE_BALANCE = 4, LIQUIDITY_POOL = 5, CONTRACT_DATA = 6, CONTRACT_CODE = 7, CONFIG_SETTING = 8, TTL = 9 };
Enum Constant and Description |
---|
ACCOUNT |
CLAIMABLE_BALANCE |
CONFIG_SETTING |
CONTRACT_CODE |
CONTRACT_DATA |
DATA |
LIQUIDITY_POOL |
OFFER |
TRUSTLINE |
TTL |
Modifier and Type | Method and Description |
---|---|
static LedgerEntryType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static LedgerEntryType |
fromXdrBase64(java.lang.String xdr) |
static LedgerEntryType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static LedgerEntryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LedgerEntryType[] |
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 LedgerEntryType ACCOUNT
public static final LedgerEntryType TRUSTLINE
public static final LedgerEntryType OFFER
public static final LedgerEntryType DATA
public static final LedgerEntryType CLAIMABLE_BALANCE
public static final LedgerEntryType LIQUIDITY_POOL
public static final LedgerEntryType CONTRACT_DATA
public static final LedgerEntryType CONTRACT_CODE
public static final LedgerEntryType CONFIG_SETTING
public static final LedgerEntryType TTL
public static LedgerEntryType[] values()
for (LedgerEntryType c : LedgerEntryType.values()) System.out.println(c);
public static LedgerEntryType 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 LedgerEntryType 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 LedgerEntryType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntryType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException