public enum SorobanCredentialsType extends java.lang.Enum<SorobanCredentialsType> implements XdrElement
enum SorobanCredentialsType { SOROBAN_CREDENTIALS_SOURCE_ACCOUNT = 0, SOROBAN_CREDENTIALS_ADDRESS = 1 };
Enum Constant and Description |
---|
SOROBAN_CREDENTIALS_ADDRESS |
SOROBAN_CREDENTIALS_SOURCE_ACCOUNT |
Modifier and Type | Method and Description |
---|---|
static SorobanCredentialsType |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static SorobanCredentialsType |
fromXdrBase64(java.lang.String xdr) |
static SorobanCredentialsType |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static SorobanCredentialsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SorobanCredentialsType[] |
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 SorobanCredentialsType SOROBAN_CREDENTIALS_SOURCE_ACCOUNT
public static final SorobanCredentialsType SOROBAN_CREDENTIALS_ADDRESS
public static SorobanCredentialsType[] values()
for (SorobanCredentialsType c : SorobanCredentialsType.values()) System.out.println(c);
public static SorobanCredentialsType 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 SorobanCredentialsType 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 SorobanCredentialsType fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SorobanCredentialsType fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException