Package org.stellar.sdk.xdr
Enum Class SCSpecType
- All Implemented Interfaces:
Serializable
,Comparable<SCSpecType>
,Constable
SCSpecType's original definition in the XDR file is:
enum SCSpecType { SC_SPEC_TYPE_VAL = 0, // Types with no parameters. SC_SPEC_TYPE_BOOL = 1, SC_SPEC_TYPE_VOID = 2, SC_SPEC_TYPE_ERROR = 3, SC_SPEC_TYPE_U32 = 4, SC_SPEC_TYPE_I32 = 5, SC_SPEC_TYPE_U64 = 6, SC_SPEC_TYPE_I64 = 7, SC_SPEC_TYPE_TIMEPOINT = 8, SC_SPEC_TYPE_DURATION = 9, SC_SPEC_TYPE_U128 = 10, SC_SPEC_TYPE_I128 = 11, SC_SPEC_TYPE_U256 = 12, SC_SPEC_TYPE_I256 = 13, SC_SPEC_TYPE_BYTES = 14, SC_SPEC_TYPE_STRING = 16, SC_SPEC_TYPE_SYMBOL = 17, SC_SPEC_TYPE_ADDRESS = 19, // Types with parameters. SC_SPEC_TYPE_OPTION = 1000, SC_SPEC_TYPE_RESULT = 1001, SC_SPEC_TYPE_VEC = 1002, SC_SPEC_TYPE_MAP = 1004, SC_SPEC_TYPE_TUPLE = 1005, SC_SPEC_TYPE_BYTES_N = 1006, // User defined types. SC_SPEC_TYPE_UDT = 2000 };
-
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 SCSpecType
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) static SCSpecType
fromXdrBase64
(String xdr) static SCSpecType
fromXdrByteArray
(byte[] xdr) int
getValue()
default String
default byte[]
static SCSpecType
Returns the enum constant of this class with the specified name.static SCSpecType[]
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
-
SC_SPEC_TYPE_VAL
-
SC_SPEC_TYPE_BOOL
-
SC_SPEC_TYPE_VOID
-
SC_SPEC_TYPE_ERROR
-
SC_SPEC_TYPE_U32
-
SC_SPEC_TYPE_I32
-
SC_SPEC_TYPE_U64
-
SC_SPEC_TYPE_I64
-
SC_SPEC_TYPE_TIMEPOINT
-
SC_SPEC_TYPE_DURATION
-
SC_SPEC_TYPE_U128
-
SC_SPEC_TYPE_I128
-
SC_SPEC_TYPE_U256
-
SC_SPEC_TYPE_I256
-
SC_SPEC_TYPE_BYTES
-
SC_SPEC_TYPE_STRING
-
SC_SPEC_TYPE_SYMBOL
-
SC_SPEC_TYPE_ADDRESS
-
SC_SPEC_TYPE_OPTION
-
SC_SPEC_TYPE_RESULT
-
SC_SPEC_TYPE_VEC
-
SC_SPEC_TYPE_MAP
-
SC_SPEC_TYPE_TUPLE
-
SC_SPEC_TYPE_BYTES_N
-
SC_SPEC_TYPE_UDT
-
-
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
-