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