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