public enum AccountMergeResultCode extends java.lang.Enum<AccountMergeResultCode> implements XdrElement
enum AccountMergeResultCode
{
// codes considered as "success" for the operation
ACCOUNT_MERGE_SUCCESS = 0,
// codes considered as "failure" for the operation
ACCOUNT_MERGE_MALFORMED = -1, // can't merge onto itself
ACCOUNT_MERGE_NO_ACCOUNT = -2, // destination does not exist
ACCOUNT_MERGE_IMMUTABLE_SET = -3, // source account has AUTH_IMMUTABLE set
ACCOUNT_MERGE_HAS_SUB_ENTRIES = -4, // account has trust lines/offers
ACCOUNT_MERGE_SEQNUM_TOO_FAR = -5, // sequence number is over max allowed
ACCOUNT_MERGE_DEST_FULL = -6, // can't add source balance to
// destination balance
ACCOUNT_MERGE_IS_SPONSOR = -7 // can't merge account that is a sponsor
};
| Enum Constant and Description |
|---|
ACCOUNT_MERGE_DEST_FULL |
ACCOUNT_MERGE_HAS_SUB_ENTRIES |
ACCOUNT_MERGE_IMMUTABLE_SET |
ACCOUNT_MERGE_IS_SPONSOR |
ACCOUNT_MERGE_MALFORMED |
ACCOUNT_MERGE_NO_ACCOUNT |
ACCOUNT_MERGE_SEQNUM_TOO_FAR |
ACCOUNT_MERGE_SUCCESS |
| Modifier and Type | Method and Description |
|---|---|
static AccountMergeResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static AccountMergeResultCode |
fromXdrBase64(java.lang.String xdr) |
static AccountMergeResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static AccountMergeResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountMergeResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOftoXdrBase64, toXdrByteArraypublic static final AccountMergeResultCode ACCOUNT_MERGE_SUCCESS
public static final AccountMergeResultCode ACCOUNT_MERGE_MALFORMED
public static final AccountMergeResultCode ACCOUNT_MERGE_NO_ACCOUNT
public static final AccountMergeResultCode ACCOUNT_MERGE_IMMUTABLE_SET
public static final AccountMergeResultCode ACCOUNT_MERGE_HAS_SUB_ENTRIES
public static final AccountMergeResultCode ACCOUNT_MERGE_SEQNUM_TOO_FAR
public static final AccountMergeResultCode ACCOUNT_MERGE_DEST_FULL
public static final AccountMergeResultCode ACCOUNT_MERGE_IS_SPONSOR
public static AccountMergeResultCode[] values()
for (AccountMergeResultCode c : AccountMergeResultCode.values()) System.out.println(c);
public static AccountMergeResultCode 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 AccountMergeResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOExceptionpublic void encode(XdrDataOutputStream stream) throws java.io.IOException
encode in interface XdrElementjava.io.IOExceptionpublic static AccountMergeResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static AccountMergeResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException