public class SCSpecTypeDef extends java.lang.Object implements XdrElement
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: case SC_SPEC_TYPE_MUXED_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; };
Modifier and Type | Class and Description |
---|---|
static class |
SCSpecTypeDef.SCSpecTypeDefBuilder |
Constructor and Description |
---|
SCSpecTypeDef() |
SCSpecTypeDef(SCSpecType discriminant,
SCSpecTypeOption option,
SCSpecTypeResult result,
SCSpecTypeVec vec,
SCSpecTypeMap map,
SCSpecTypeTuple tuple,
SCSpecTypeBytesN bytesN,
SCSpecTypeUDT udt) |
Modifier and Type | Method and Description |
---|---|
static SCSpecTypeDef.SCSpecTypeDefBuilder |
builder() |
static SCSpecTypeDef |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static SCSpecTypeDef |
fromXdrBase64(java.lang.String xdr) |
static SCSpecTypeDef |
fromXdrByteArray(byte[] xdr) |
SCSpecTypeBytesN |
getBytesN() |
SCSpecType |
getDiscriminant() |
SCSpecTypeMap |
getMap() |
SCSpecTypeOption |
getOption() |
SCSpecTypeResult |
getResult() |
SCSpecTypeTuple |
getTuple() |
SCSpecTypeUDT |
getUdt() |
SCSpecTypeVec |
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) |
SCSpecTypeDef.SCSpecTypeDefBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public SCSpecTypeDef()
public SCSpecTypeDef(SCSpecType discriminant, SCSpecTypeOption option, SCSpecTypeResult result, SCSpecTypeVec vec, SCSpecTypeMap map, SCSpecTypeTuple tuple, SCSpecTypeBytesN bytesN, SCSpecTypeUDT udt)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SCSpecTypeDef decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SCSpecTypeDef fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SCSpecTypeDef fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SCSpecTypeDef.SCSpecTypeDefBuilder builder()
public SCSpecTypeDef.SCSpecTypeDefBuilder toBuilder()
public SCSpecType getDiscriminant()
public SCSpecTypeOption getOption()
public SCSpecTypeResult getResult()
public SCSpecTypeVec getVec()
public SCSpecTypeMap getMap()
public SCSpecTypeTuple getTuple()
public SCSpecTypeBytesN getBytesN()
public SCSpecTypeUDT getUdt()
public void setDiscriminant(SCSpecType discriminant)
public void setOption(SCSpecTypeOption option)
public void setResult(SCSpecTypeResult result)
public void setVec(SCSpecTypeVec vec)
public void setMap(SCSpecTypeMap map)
public void setTuple(SCSpecTypeTuple tuple)
public void setBytesN(SCSpecTypeBytesN bytesN)
public void setUdt(SCSpecTypeUDT udt)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object