Package org.stellar.sdk.xdr
Class SCSpecEventParamV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecEventParamV0
- All Implemented Interfaces:
XdrElement
SCSpecEventParamV0's original definition in the XDR file is:
struct SCSpecEventParamV0
{
string doc<SC_SPEC_DOC_LIMIT>;
string name<30>;
SCSpecTypeDef type;
SCSpecEventParamLocationV0 location;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecEventParamV0(XdrString doc, XdrString name, SCSpecTypeDef type, SCSpecEventParamLocationV0 location) Creates a newSCSpecEventParamV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecEventParamV0decode(XdrDataInputStream stream) static SCSpecEventParamV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecEventParamV0static SCSpecEventParamV0fromXdrBase64(String xdr) static SCSpecEventParamV0fromXdrByteArray(byte[] xdr) getDoc()Value of thedocfield.Value of thelocationfield.getName()Value of thenamefield.getType()Value of thetypefield.inthashCode()voidValue of thedocfield.voidsetLocation(SCSpecEventParamLocationV0 location) Value of thelocationfield.voidValue of thenamefield.voidsetType(SCSpecTypeDef type) Value of thetypefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecEventParamV0
public SCSpecEventParamV0() -
SCSpecEventParamV0
public SCSpecEventParamV0(XdrString doc, XdrString name, SCSpecTypeDef type, SCSpecEventParamLocationV0 location) Creates a newSCSpecEventParamV0instance.- Parameters:
doc- thedocfield valuename- thenamefield valuetype- thetypefield valuelocation- thelocationfield 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
-
getType
Value of thetypefield.- Returns:
- the
typefield value
-
getLocation
Value of thelocationfield.- Returns:
- the
locationfield value
-
setDoc
Value of thedocfield.- Parameters:
doc- thedocfield value
-
setName
Value of thenamefield.- Parameters:
name- thenamefield value
-
setType
Value of thetypefield.- Parameters:
type- thetypefield value
-
setLocation
Value of thelocationfield.- Parameters:
location- thelocationfield value
-
equals
-
hashCode
public int hashCode() -
toString
-