Package org.stellar.sdk.xdr
Class SCSpecEventV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecEventV0
- All Implemented Interfaces:
XdrElement
SCSpecEventV0's original definition in the XDR file is:
struct SCSpecEventV0
{
string doc<SC_SPEC_DOC_LIMIT>;
string lib<80>;
SCSymbol name;
SCSymbol prefixTopics<2>;
SCSpecEventParamV0 params<>;
SCSpecEventDataFormat dataFormat;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecEventV0(XdrString doc, XdrString lib, SCSymbol name, SCSymbol[] prefixTopics, SCSpecEventParamV0[] params, SCSpecEventDataFormat dataFormat) Creates a newSCSpecEventV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecEventV0decode(XdrDataInputStream stream) static SCSpecEventV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecEventV0static SCSpecEventV0fromXdrBase64(String xdr) static SCSpecEventV0fromXdrByteArray(byte[] xdr) Value of thedataFormatfield.getDoc()Value of thedocfield.getLib()Value of thelibfield.getName()Value of thenamefield.Value of theparamsfield.SCSymbol[]Value of theprefixTopicsfield.inthashCode()voidsetDataFormat(SCSpecEventDataFormat dataFormat) Value of thedataFormatfield.voidValue of thedocfield.voidValue of thelibfield.voidValue of thenamefield.voidsetParams(SCSpecEventParamV0[] params) Value of theparamsfield.voidsetPrefixTopics(SCSymbol[] prefixTopics) Value of theprefixTopicsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecEventV0
public SCSpecEventV0() -
SCSpecEventV0
public SCSpecEventV0(XdrString doc, XdrString lib, SCSymbol name, SCSymbol[] prefixTopics, SCSpecEventParamV0[] params, SCSpecEventDataFormat dataFormat) Creates a newSCSpecEventV0instance.- Parameters:
doc- thedocfield valuelib- thelibfield valuename- thenamefield valueprefixTopics- theprefixTopicsfield valueparams- theparamsfield valuedataFormat- thedataFormatfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getDoc
Value of thedocfield.- Returns:
- the
docfield value
-
getLib
Value of thelibfield.- Returns:
- the
libfield value
-
getName
Value of thenamefield.- Returns:
- the
namefield value
-
getPrefixTopics
Value of theprefixTopicsfield.- Returns:
- the
prefixTopicsfield value
-
getParams
Value of theparamsfield.- Returns:
- the
paramsfield value
-
getDataFormat
Value of thedataFormatfield.- Returns:
- the
dataFormatfield value
-
setDoc
Value of thedocfield.- Parameters:
doc- thedocfield value
-
setLib
Value of thelibfield.- Parameters:
lib- thelibfield value
-
setName
Value of thenamefield.- Parameters:
name- thenamefield value
-
setPrefixTopics
Value of theprefixTopicsfield.- Parameters:
prefixTopics- theprefixTopicsfield value
-
setParams
Value of theparamsfield.- Parameters:
params- theparamsfield value
-
setDataFormat
Value of thedataFormatfield.- Parameters:
dataFormat- thedataFormatfield value
-
equals
-
hashCode
public int hashCode() -
toString
-