Package org.stellar.sdk.xdr
Class SCSpecUDTErrorEnumCaseV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecUDTErrorEnumCaseV0
- All Implemented Interfaces:
XdrElement
SCSpecUDTErrorEnumCaseV0's original definition in the XDR file is:
struct SCSpecUDTErrorEnumCaseV0
{
string doc<SC_SPEC_DOC_LIMIT>;
string name<60>;
uint32 value;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecUDTErrorEnumCaseV0(XdrString doc, XdrString name, Uint32 value) Creates a newSCSpecUDTErrorEnumCaseV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecUDTErrorEnumCaseV0decode(XdrDataInputStream stream) static SCSpecUDTErrorEnumCaseV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecUDTErrorEnumCaseV0static SCSpecUDTErrorEnumCaseV0fromXdrBase64(String xdr) static SCSpecUDTErrorEnumCaseV0fromXdrByteArray(byte[] xdr) getDoc()Value of thedocfield.getName()Value of thenamefield.getValue()Value of thevaluefield.inthashCode()voidValue of thedocfield.voidValue of thenamefield.voidValue of thevaluefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecUDTErrorEnumCaseV0
public SCSpecUDTErrorEnumCaseV0() -
SCSpecUDTErrorEnumCaseV0
Creates a newSCSpecUDTErrorEnumCaseV0instance.- Parameters:
doc- thedocfield valuename- thenamefield valuevalue- thevaluefield 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
public static SCSpecUDTErrorEnumCaseV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getValue
Value of thevaluefield.- Returns:
- the
valuefield value
-
setDoc
Value of thedocfield.- Parameters:
doc- thedocfield value
-
setName
Value of thenamefield.- Parameters:
name- thenamefield value
-
setValue
Value of thevaluefield.- Parameters:
value- thevaluefield value
-
equals
-
hashCode
public int hashCode() -
toString
-