java.lang.Object
com.zeroc.Ice.ProtocolVersion
- All Implemented Interfaces:
Serializable,Cloneable
Represents a version of the Ice protocol. The only version implemented and supported by Ice is version 1.0.
Remarks:
The Slice compiler generated this class from Slice struct ::Ice::ProtocolVersion.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aProtocolVersion.ProtocolVersion(byte major, byte minor) Constructs aProtocolVersionwith values for all its fields. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleaninthashCode()static ProtocolVersionice_read(InputStream istr) Unmarshals aProtocolVersionfrom an input stream.static Optional<ProtocolVersion>ice_read(InputStream istr, int tag) Unmarshals an optionalProtocolVersionfrom an input stream.voidice_readMembers(InputStream istr) Unmarshals and sets this object's fields from an input stream.static voidice_write(OutputStream ostr, int tag, ProtocolVersion v) Marshals an optionalProtocolVersioninto an output stream.static voidice_write(OutputStream ostr, int tag, Optional<ProtocolVersion> v) Marshals an optionalProtocolVersioninto an output stream.static voidice_write(OutputStream ostr, ProtocolVersion v) Marshals aProtocolVersioninto an output stream.voidice_writeMembers(OutputStream ostr) Marshals this object's fields into an output stream.
-
Field Details
-
major
public byte majorThe major version of the Ice protocol. -
minor
public byte minorThe minor version of the Ice protocol.
-
-
Constructor Details
-
ProtocolVersion
public ProtocolVersion()Constructs aProtocolVersion. -
ProtocolVersion
public ProtocolVersion(byte major, byte minor) Constructs aProtocolVersionwith values for all its fields.- Parameters:
major- The major version of the Ice protocol.minor- The minor version of the Ice protocol.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
clone
-
ice_writeMembers
Marshals this object's fields into an output stream.- Parameters:
ostr- the output stream
-
ice_readMembers
Unmarshals and sets this object's fields from an input stream.- Parameters:
istr- the input stream
-
ice_write
Marshals aProtocolVersioninto an output stream.- Parameters:
ostr- the output streamv- theProtocolVersionto marshal
-
ice_read
Unmarshals aProtocolVersionfrom an input stream.- Parameters:
istr- the input stream- Returns:
- the unmarshaled
ProtocolVersion
-
ice_write
Marshals an optionalProtocolVersioninto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_write
Marshals an optionalProtocolVersioninto an output stream.- Parameters:
ostr- the output streamtag- the tagv- the value to marshal
-
ice_read
Unmarshals an optionalProtocolVersionfrom an input stream.- Parameters:
istr- the input streamtag- the tag- Returns:
- the unmarshaled value
-