Package org.stellar.sdk.xdr
Enum Class ChangeTrustResultCode
- All Implemented Interfaces:
Serializable
,Comparable<ChangeTrustResultCode>
,Constable
ChangeTrustResultCode's original definition in the XDR file is:
enum ChangeTrustResultCode { // codes considered as "success" for the operation CHANGE_TRUST_SUCCESS = 0, // codes considered as "failure" for the operation CHANGE_TRUST_MALFORMED = -1, // bad input CHANGE_TRUST_NO_ISSUER = -2, // could not find issuer CHANGE_TRUST_INVALID_LIMIT = -3, // cannot drop limit below balance // cannot create with a limit of 0 CHANGE_TRUST_LOW_RESERVE = -4, // not enough funds to create a new trust line, CHANGE_TRUST_SELF_NOT_ALLOWED = -5, // trusting self is not allowed CHANGE_TRUST_TRUST_LINE_MISSING = -6, // Asset trustline is missing for pool CHANGE_TRUST_CANNOT_DELETE = -7, // Asset trustline is still referenced in a pool CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES = -8 // Asset trustline is deauthorized };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeTrustResultCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static ChangeTrustResultCode
fromXdrBase64
(String xdr) static ChangeTrustResultCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static ChangeTrustResultCode
Returns the enum constant of this class with the specified name.static ChangeTrustResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CHANGE_TRUST_SUCCESS
-
CHANGE_TRUST_MALFORMED
-
CHANGE_TRUST_NO_ISSUER
-
CHANGE_TRUST_INVALID_LIMIT
-
CHANGE_TRUST_LOW_RESERVE
-
CHANGE_TRUST_SELF_NOT_ALLOWED
-
CHANGE_TRUST_TRUST_LINE_MISSING
-
CHANGE_TRUST_CANNOT_DELETE
-
CHANGE_TRUST_NOT_AUTH_MAINTAIN_LIABILITIES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
decode
- Throws:
IOException
-
encode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-