Package org.stellar.sdk.xdr
Class SCEnvMetaEntry
java.lang.Object
org.stellar.sdk.xdr.SCEnvMetaEntry
- All Implemented Interfaces:
XdrElement
SCEnvMetaEntry's original definition in the XDR file is:
union SCEnvMetaEntry switch (SCEnvMetaKind kind)
{
case SC_ENV_META_KIND_INTERFACE_VERSION:
struct {
uint32 protocol;
uint32 preRelease;
} interfaceVersion;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSCEnvMetaEntryInterfaceVersion's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSCEnvMetaEntry(SCEnvMetaKind discriminant, SCEnvMetaEntry.SCEnvMetaEntryInterfaceVersion interfaceVersion) Creates a newSCEnvMetaEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SCEnvMetaEntrydecode(XdrDataInputStream stream) static SCEnvMetaEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic SCEnvMetaEntrystatic SCEnvMetaEntryfromXdrBase64(String xdr) static SCEnvMetaEntryfromXdrByteArray(byte[] xdr) Value of thediscriminantfield.Value of theinterfaceVersionfield.inthashCode()voidsetDiscriminant(SCEnvMetaKind discriminant) Value of thediscriminantfield.voidsetInterfaceVersion(SCEnvMetaEntry.SCEnvMetaEntryInterfaceVersion interfaceVersion) Value of theinterfaceVersionfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SCEnvMetaEntry
public SCEnvMetaEntry() -
SCEnvMetaEntry
public SCEnvMetaEntry(SCEnvMetaKind discriminant, SCEnvMetaEntry.SCEnvMetaEntryInterfaceVersion interfaceVersion) Creates a newSCEnvMetaEntryinstance.- Parameters:
discriminant- thediscriminantfield valueinterfaceVersion- theinterfaceVersionfield 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getInterfaceVersion
Value of theinterfaceVersionfield.- Returns:
- the
interfaceVersionfield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setInterfaceVersion
Value of theinterfaceVersionfield.- Parameters:
interfaceVersion- theinterfaceVersionfield value
-
equals
-
hashCode
public int hashCode() -
toString
-