Package org.stellar.sdk.xdr
Class SCSpecUDTUnionCaseV0
java.lang.Object
org.stellar.sdk.xdr.SCSpecUDTUnionCaseV0
- All Implemented Interfaces:
XdrElement
SCSpecUDTUnionCaseV0's original definition in the XDR file is:
union SCSpecUDTUnionCaseV0 switch (SCSpecUDTUnionCaseV0Kind kind)
{
case SC_SPEC_UDT_UNION_CASE_VOID_V0:
SCSpecUDTUnionCaseVoidV0 voidCase;
case SC_SPEC_UDT_UNION_CASE_TUPLE_V0:
SCSpecUDTUnionCaseTupleV0 tupleCase;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCSpecUDTUnionCaseV0(SCSpecUDTUnionCaseV0Kind discriminant, SCSpecUDTUnionCaseVoidV0 voidCase, SCSpecUDTUnionCaseTupleV0 tupleCase) Creates a newSCSpecUDTUnionCaseV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCSpecUDTUnionCaseV0decode(XdrDataInputStream stream) static SCSpecUDTUnionCaseV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCSpecUDTUnionCaseV0static SCSpecUDTUnionCaseV0fromXdrBase64(String xdr) static SCSpecUDTUnionCaseV0fromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of thetupleCasefield.Value of thevoidCasefield.inthashCode()voidsetDiscriminant(SCSpecUDTUnionCaseV0Kind discriminant) Value of thediscriminantfield.voidsetTupleCase(SCSpecUDTUnionCaseTupleV0 tupleCase) Value of thetupleCasefield.voidsetVoidCase(SCSpecUDTUnionCaseVoidV0 voidCase) Value of thevoidCasefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCSpecUDTUnionCaseV0
public SCSpecUDTUnionCaseV0() -
SCSpecUDTUnionCaseV0
public SCSpecUDTUnionCaseV0(SCSpecUDTUnionCaseV0Kind discriminant, SCSpecUDTUnionCaseVoidV0 voidCase, SCSpecUDTUnionCaseTupleV0 tupleCase) Creates a newSCSpecUDTUnionCaseV0instance.- Parameters:
discriminant- thediscriminantfield valuevoidCase- thevoidCasefield valuetupleCase- thetupleCasefield 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 SCSpecUDTUnionCaseV0 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getVoidCase
Value of thevoidCasefield.- Returns:
- the
voidCasefield value
-
getTupleCase
Value of thetupleCasefield.- Returns:
- the
tupleCasefield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setVoidCase
Value of thevoidCasefield.- Parameters:
voidCase- thevoidCasefield value
-
setTupleCase
Value of thetupleCasefield.- Parameters:
tupleCase- thetupleCasefield value
-
equals
-
hashCode
public int hashCode() -
toString
-