public enum TrustLineFlags extends java.lang.Enum<TrustLineFlags> implements XdrElement
enum TrustLineFlags { // issuer has authorized account to perform transactions with its credit AUTHORIZED_FLAG = 1, // issuer has authorized account to maintain and reduce liabilities for its // credit AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG = 2, // issuer has specified that it may clawback its credit, and that claimable // balances created with its credit may also be clawed back TRUSTLINE_CLAWBACK_ENABLED_FLAG = 4 };
Enum Constant and Description |
---|
AUTHORIZED_FLAG |
AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG |
TRUSTLINE_CLAWBACK_ENABLED_FLAG |
Modifier and Type | Method and Description |
---|---|
static TrustLineFlags |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static TrustLineFlags |
fromXdrBase64(java.lang.String xdr) |
static TrustLineFlags |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static TrustLineFlags |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrustLineFlags[] |
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 TrustLineFlags AUTHORIZED_FLAG
public static final TrustLineFlags AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
public static final TrustLineFlags TRUSTLINE_CLAWBACK_ENABLED_FLAG
public static TrustLineFlags[] values()
for (TrustLineFlags c : TrustLineFlags.values()) System.out.println(c);
public static TrustLineFlags 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 TrustLineFlags 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 TrustLineFlags fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static TrustLineFlags fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException