Package org.stellar.sdk.xdr
Enum Class ManageBuyOfferResultCode
- All Implemented Interfaces:
Serializable
,Comparable<ManageBuyOfferResultCode>
,Constable
ManageBuyOfferResultCode's original definition in the XDR file is:
enum ManageBuyOfferResultCode { // codes considered as "success" for the operation MANAGE_BUY_OFFER_SUCCESS = 0, // codes considered as "failure" for the operation MANAGE_BUY_OFFER_MALFORMED = -1, // generated offer would be invalid MANAGE_BUY_OFFER_SELL_NO_TRUST = -2, // no trust line for what we're selling MANAGE_BUY_OFFER_BUY_NO_TRUST = -3, // no trust line for what we're buying MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED = -4, // not authorized to sell MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED = -5, // not authorized to buy MANAGE_BUY_OFFER_LINE_FULL = -6, // can't receive more of what it's buying MANAGE_BUY_OFFER_UNDERFUNDED = -7, // doesn't hold what it's trying to sell MANAGE_BUY_OFFER_CROSS_SELF = -8, // would cross an offer from the same user MANAGE_BUY_OFFER_SELL_NO_ISSUER = -9, // no issuer for what we're selling MANAGE_BUY_OFFER_BUY_NO_ISSUER = -10, // no issuer for what we're buying // update errors MANAGE_BUY_OFFER_NOT_FOUND = -11, // offerID does not match an existing offer MANAGE_BUY_OFFER_LOW_RESERVE = -12 // not enough funds to create a new Offer };
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ManageBuyOfferResultCode
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static ManageBuyOfferResultCode
fromXdrBase64
(String xdr) static ManageBuyOfferResultCode
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static ManageBuyOfferResultCode
Returns the enum constant of this class with the specified name.static ManageBuyOfferResultCode[]
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
-
MANAGE_BUY_OFFER_SUCCESS
-
MANAGE_BUY_OFFER_MALFORMED
-
MANAGE_BUY_OFFER_SELL_NO_TRUST
-
MANAGE_BUY_OFFER_BUY_NO_TRUST
-
MANAGE_BUY_OFFER_SELL_NOT_AUTHORIZED
-
MANAGE_BUY_OFFER_BUY_NOT_AUTHORIZED
-
MANAGE_BUY_OFFER_LINE_FULL
-
MANAGE_BUY_OFFER_UNDERFUNDED
-
MANAGE_BUY_OFFER_CROSS_SELF
-
MANAGE_BUY_OFFER_SELL_NO_ISSUER
-
MANAGE_BUY_OFFER_BUY_NO_ISSUER
-
MANAGE_BUY_OFFER_NOT_FOUND
-
MANAGE_BUY_OFFER_LOW_RESERVE
-
-
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
-