public enum RevokeSponsorshipResultCode extends java.lang.Enum<RevokeSponsorshipResultCode> implements XdrElement
enum RevokeSponsorshipResultCode { // codes considered as "success" for the operation REVOKE_SPONSORSHIP_SUCCESS = 0, // codes considered as "failure" for the operation REVOKE_SPONSORSHIP_DOES_NOT_EXIST = -1, REVOKE_SPONSORSHIP_NOT_SPONSOR = -2, REVOKE_SPONSORSHIP_LOW_RESERVE = -3, REVOKE_SPONSORSHIP_ONLY_TRANSFERABLE = -4, REVOKE_SPONSORSHIP_MALFORMED = -5 };
Enum Constant and Description |
---|
REVOKE_SPONSORSHIP_DOES_NOT_EXIST |
REVOKE_SPONSORSHIP_LOW_RESERVE |
REVOKE_SPONSORSHIP_MALFORMED |
REVOKE_SPONSORSHIP_NOT_SPONSOR |
REVOKE_SPONSORSHIP_ONLY_TRANSFERABLE |
REVOKE_SPONSORSHIP_SUCCESS |
Modifier and Type | Method and Description |
---|---|
static RevokeSponsorshipResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static RevokeSponsorshipResultCode |
fromXdrBase64(java.lang.String xdr) |
static RevokeSponsorshipResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static RevokeSponsorshipResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RevokeSponsorshipResultCode[] |
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 RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_SUCCESS
public static final RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_DOES_NOT_EXIST
public static final RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_NOT_SPONSOR
public static final RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_LOW_RESERVE
public static final RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_ONLY_TRANSFERABLE
public static final RevokeSponsorshipResultCode REVOKE_SPONSORSHIP_MALFORMED
public static RevokeSponsorshipResultCode[] values()
for (RevokeSponsorshipResultCode c : RevokeSponsorshipResultCode.values()) System.out.println(c);
public static RevokeSponsorshipResultCode 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 RevokeSponsorshipResultCode 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 RevokeSponsorshipResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static RevokeSponsorshipResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException