public enum CreateAccountResultCode extends java.lang.Enum<CreateAccountResultCode> implements XdrElement
enum CreateAccountResultCode
{
// codes considered as "success" for the operation
CREATE_ACCOUNT_SUCCESS = 0, // account was created
// codes considered as "failure" for the operation
CREATE_ACCOUNT_MALFORMED = -1, // invalid destination
CREATE_ACCOUNT_UNDERFUNDED = -2, // not enough funds in source account
CREATE_ACCOUNT_LOW_RESERVE =
-3, // would create an account below the min reserve
CREATE_ACCOUNT_ALREADY_EXIST = -4 // account already exists
};
| Enum Constant and Description |
|---|
CREATE_ACCOUNT_ALREADY_EXIST |
CREATE_ACCOUNT_LOW_RESERVE |
CREATE_ACCOUNT_MALFORMED |
CREATE_ACCOUNT_SUCCESS |
CREATE_ACCOUNT_UNDERFUNDED |
| Modifier and Type | Method and Description |
|---|---|
static CreateAccountResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static CreateAccountResultCode |
fromXdrBase64(java.lang.String xdr) |
static CreateAccountResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static CreateAccountResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CreateAccountResultCode[] |
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 CreateAccountResultCode CREATE_ACCOUNT_SUCCESS
public static final CreateAccountResultCode CREATE_ACCOUNT_MALFORMED
public static final CreateAccountResultCode CREATE_ACCOUNT_UNDERFUNDED
public static final CreateAccountResultCode CREATE_ACCOUNT_LOW_RESERVE
public static final CreateAccountResultCode CREATE_ACCOUNT_ALREADY_EXIST
public static CreateAccountResultCode[] values()
for (CreateAccountResultCode c : CreateAccountResultCode.values()) System.out.println(c);
public static CreateAccountResultCode 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 CreateAccountResultCode 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 CreateAccountResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOExceptionpublic static CreateAccountResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException