Record Class CBContainerProtocolUse
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.runtime.container_protocol.CBContainerProtocolUse
- Record Components:
containerProtocolVersion- The container protocol version that will be usedapplicationProtocolId- The application protocol ID that will be usedapplicationProtocolVersion- The application protocol version that will be used
-
Constructor Summary
ConstructorsConstructorDescriptionCBContainerProtocolUse(long containerProtocolVersion, UUID applicationProtocolId, long applicationProtocolVersion) Creates an instance of aCBContainerProtocolUserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationProtocolIdrecord component.longReturns the value of theapplicationProtocolVersionrecord component.longReturns the value of thecontainerProtocolVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CBContainerProtocolUse
public CBContainerProtocolUse(long containerProtocolVersion, UUID applicationProtocolId, long applicationProtocolVersion) Creates an instance of aCBContainerProtocolUserecord class.- Parameters:
containerProtocolVersion- the value for thecontainerProtocolVersionrecord componentapplicationProtocolId- the value for theapplicationProtocolIdrecord componentapplicationProtocolVersion- the value for theapplicationProtocolVersionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
containerProtocolVersion
public long containerProtocolVersion()Returns the value of thecontainerProtocolVersionrecord component.- Returns:
- the value of the
containerProtocolVersionrecord component
-
applicationProtocolId
Returns the value of theapplicationProtocolIdrecord component.- Returns:
- the value of the
applicationProtocolIdrecord component
-
applicationProtocolVersion
public long applicationProtocolVersion()Returns the value of theapplicationProtocolVersionrecord component.- Returns:
- the value of the
applicationProtocolVersionrecord component
-