public enum SetTrustLineFlagsResultCode extends java.lang.Enum<SetTrustLineFlagsResultCode> implements XdrElement
enum SetTrustLineFlagsResultCode { // codes considered as "success" for the operation SET_TRUST_LINE_FLAGS_SUCCESS = 0, // codes considered as "failure" for the operation SET_TRUST_LINE_FLAGS_MALFORMED = -1, SET_TRUST_LINE_FLAGS_NO_TRUST_LINE = -2, SET_TRUST_LINE_FLAGS_CANT_REVOKE = -3, SET_TRUST_LINE_FLAGS_INVALID_STATE = -4, SET_TRUST_LINE_FLAGS_LOW_RESERVE = -5 // claimable balances can't be created // on revoke due to low reserves };
Enum Constant and Description |
---|
SET_TRUST_LINE_FLAGS_CANT_REVOKE |
SET_TRUST_LINE_FLAGS_INVALID_STATE |
SET_TRUST_LINE_FLAGS_LOW_RESERVE |
SET_TRUST_LINE_FLAGS_MALFORMED |
SET_TRUST_LINE_FLAGS_NO_TRUST_LINE |
SET_TRUST_LINE_FLAGS_SUCCESS |
Modifier and Type | Method and Description |
---|---|
static SetTrustLineFlagsResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static SetTrustLineFlagsResultCode |
fromXdrBase64(java.lang.String xdr) |
static SetTrustLineFlagsResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static SetTrustLineFlagsResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SetTrustLineFlagsResultCode[] |
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 SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_SUCCESS
public static final SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_MALFORMED
public static final SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_NO_TRUST_LINE
public static final SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_CANT_REVOKE
public static final SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_INVALID_STATE
public static final SetTrustLineFlagsResultCode SET_TRUST_LINE_FLAGS_LOW_RESERVE
public static SetTrustLineFlagsResultCode[] values()
for (SetTrustLineFlagsResultCode c : SetTrustLineFlagsResultCode.values()) System.out.println(c);
public static SetTrustLineFlagsResultCode 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 SetTrustLineFlagsResultCode 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 SetTrustLineFlagsResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SetTrustLineFlagsResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException