Package org.stellar.sdk.xdr
Class SCSpecFunctionV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecFunctionV0
- All Implemented Interfaces:
XdrElement
SCSpecFunctionV0's original definition in the XDR file is:
struct SCSpecFunctionV0
{
string doc<SC_SPEC_DOC_LIMIT>;
SCSymbol name;
SCSpecFunctionInputV0 inputs<>;
SCSpecTypeDef outputs<1>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecFunctionV0(XdrString doc, SCSymbol name, SCSpecFunctionInputV0[] inputs, SCSpecTypeDef[] outputs) Creates a newSCSpecFunctionV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecFunctionV0decode(XdrDataInputStream stream) static SCSpecFunctionV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecFunctionV0static SCSpecFunctionV0fromXdrBase64(String xdr) static SCSpecFunctionV0fromXdrByteArray(byte[] xdr) getDoc()Value of thedocfield.Value of theinputsfield.getName()Value of thenamefield.Value of theoutputsfield.inthashCode()voidValue of thedocfield.voidsetInputs(SCSpecFunctionInputV0[] inputs) Value of theinputsfield.voidValue of thenamefield.voidsetOutputs(SCSpecTypeDef[] outputs) Value of theoutputsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecFunctionV0
public SCSpecFunctionV0() -
SCSpecFunctionV0
public SCSpecFunctionV0(XdrString doc, SCSymbol name, SCSpecFunctionInputV0[] inputs, SCSpecTypeDef[] outputs) Creates a newSCSpecFunctionV0instance.- Parameters:
doc- thedocfield valuename- thenamefield valueinputs- theinputsfield valueoutputs- theoutputsfield 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
-
getName
Value of thenamefield.- Returns:
- the
namefield value
-
getInputs
Value of theinputsfield.- Returns:
- the
inputsfield value
-
getOutputs
Value of theoutputsfield.- Returns:
- the
outputsfield value
-
setDoc
Value of thedocfield.- Parameters:
doc- thedocfield value
-
setName
Value of thenamefield.- Parameters:
name- thenamefield value
-
setInputs
Value of theinputsfield.- Parameters:
inputs- theinputsfield value
-
setOutputs
Value of theoutputsfield.- Parameters:
outputs- theoutputsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-