Package org.stellar.sdk.xdr
Class SCSpecTypeDef
java.lang.Object
org.stellar.sdk.xdr.SCSpecTypeDef
SCSpecTypeDef's original definition in the XDR file is:
union SCSpecTypeDef switch (SCSpecType type) { case SC_SPEC_TYPE_VAL: case SC_SPEC_TYPE_BOOL: case SC_SPEC_TYPE_VOID: case SC_SPEC_TYPE_ERROR: case SC_SPEC_TYPE_U32: case SC_SPEC_TYPE_I32: case SC_SPEC_TYPE_U64: case SC_SPEC_TYPE_I64: case SC_SPEC_TYPE_TIMEPOINT: case SC_SPEC_TYPE_DURATION: case SC_SPEC_TYPE_U128: case SC_SPEC_TYPE_I128: case SC_SPEC_TYPE_U256: case SC_SPEC_TYPE_I256: case SC_SPEC_TYPE_BYTES: case SC_SPEC_TYPE_STRING: case SC_SPEC_TYPE_SYMBOL: case SC_SPEC_TYPE_ADDRESS: void; case SC_SPEC_TYPE_OPTION: SCSpecTypeOption option; case SC_SPEC_TYPE_RESULT: SCSpecTypeResult result; case SC_SPEC_TYPE_VEC: SCSpecTypeVec vec; case SC_SPEC_TYPE_MAP: SCSpecTypeMap map; case SC_SPEC_TYPE_TUPLE: SCSpecTypeTuple tuple; case SC_SPEC_TYPE_BYTES_N: SCSpecTypeBytesN bytesN; case SC_SPEC_TYPE_UDT: SCSpecTypeUDT udt; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSCSpecTypeDef
(SCSpecType discriminant, SCSpecTypeOption option, SCSpecTypeResult result, SCSpecTypeVec vec, SCSpecTypeMap map, SCSpecTypeTuple tuple, SCSpecTypeBytesN bytesN, SCSpecTypeUDT udt) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SCSpecTypeDef
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SCSpecTypeDef
fromXdrBase64
(String xdr) static SCSpecTypeDef
fromXdrByteArray
(byte[] xdr) getMap()
getTuple()
getUdt()
getVec()
int
hashCode()
void
setBytesN
(SCSpecTypeBytesN bytesN) void
setDiscriminant
(SCSpecType discriminant) void
setMap
(SCSpecTypeMap map) void
setOption
(SCSpecTypeOption option) void
setResult
(SCSpecTypeResult result) void
setTuple
(SCSpecTypeTuple tuple) void
setUdt
(SCSpecTypeUDT udt) void
setVec
(SCSpecTypeVec vec) toString()
default String
default byte[]
-
Constructor Details
-
SCSpecTypeDef
public SCSpecTypeDef() -
SCSpecTypeDef
public SCSpecTypeDef(SCSpecType discriminant, SCSpecTypeOption option, SCSpecTypeResult result, SCSpecTypeVec vec, SCSpecTypeMap map, SCSpecTypeTuple tuple, SCSpecTypeBytesN bytesN, SCSpecTypeUDT udt)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getOption
-
getResult
-
getVec
-
getMap
-
getTuple
-
getBytesN
-
getUdt
-
setDiscriminant
-
setOption
-
setResult
-
setVec
-
setMap
-
setTuple
-
setBytesN
-
setUdt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-