public enum LiquidityPoolWithdrawResultCode extends java.lang.Enum<LiquidityPoolWithdrawResultCode> implements XdrElement
enum LiquidityPoolWithdrawResultCode { // codes considered as "success" for the operation LIQUIDITY_POOL_WITHDRAW_SUCCESS = 0, // codes considered as "failure" for the operation LIQUIDITY_POOL_WITHDRAW_MALFORMED = -1, // bad input LIQUIDITY_POOL_WITHDRAW_NO_TRUST = -2, // no trust line for one of the // assets LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED = -3, // not enough balance of the // pool share LIQUIDITY_POOL_WITHDRAW_LINE_FULL = -4, // would go above limit for one // of the assets LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM = -5 // didn't withdraw enough };
Modifier and Type | Method and Description |
---|---|
static LiquidityPoolWithdrawResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static LiquidityPoolWithdrawResultCode |
fromXdrBase64(java.lang.String xdr) |
static LiquidityPoolWithdrawResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static LiquidityPoolWithdrawResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LiquidityPoolWithdrawResultCode[] |
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 LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_SUCCESS
public static final LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_MALFORMED
public static final LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_NO_TRUST
public static final LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_UNDERFUNDED
public static final LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_LINE_FULL
public static final LiquidityPoolWithdrawResultCode LIQUIDITY_POOL_WITHDRAW_UNDER_MINIMUM
public static LiquidityPoolWithdrawResultCode[] values()
for (LiquidityPoolWithdrawResultCode c : LiquidityPoolWithdrawResultCode.values()) System.out.println(c);
public static LiquidityPoolWithdrawResultCode 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 LiquidityPoolWithdrawResultCode 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 LiquidityPoolWithdrawResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LiquidityPoolWithdrawResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException