Record Class CBContainerProtocolAvailable
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.runtime.container_protocol.CBContainerProtocolAvailable
- Record Components:
containerProtocolMinimumVersion- The minimum supported container protocol versioncontainerProtocolMaximumVersion- The maximum supported container protocol versionapplicationProtocolId- The application protocol IDapplicationProtocolMinimumVersion- The minimum supported application protocol versionapplicationProtocolMaximumVersion- The maximum supported application protocol version
public record CBContainerProtocolAvailable(long containerProtocolMinimumVersion, long containerProtocolMaximumVersion, UUID applicationProtocolId, long applicationProtocolMinimumVersion, long applicationProtocolMaximumVersion)
extends Record
An availability message, typically presented by a server, that announces the
available application protocol ID and version, and the version of the
container protocol used to serve it.
-
Constructor Summary
ConstructorsConstructorDescriptionCBContainerProtocolAvailable(long containerProtocolMinimumVersion, long containerProtocolMaximumVersion, UUID applicationProtocolId, long applicationProtocolMinimumVersion, long applicationProtocolMaximumVersion) An availability message, typically presented by a server, that announces the available application protocol ID and version, and the version of the container protocol used to serve it. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationProtocolIdrecord component.longReturns the value of theapplicationProtocolMaximumVersionrecord component.longReturns the value of theapplicationProtocolMinimumVersionrecord component.longReturns the value of thecontainerProtocolMaximumVersionrecord component.longReturns the value of thecontainerProtocolMinimumVersionrecord 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
-
CBContainerProtocolAvailable
public CBContainerProtocolAvailable(long containerProtocolMinimumVersion, long containerProtocolMaximumVersion, UUID applicationProtocolId, long applicationProtocolMinimumVersion, long applicationProtocolMaximumVersion) An availability message, typically presented by a server, that announces the available application protocol ID and version, and the version of the container protocol used to serve it.- Parameters:
containerProtocolMinimumVersion- The minimum supported container protocol versioncontainerProtocolMaximumVersion- The maximum supported container protocol versionapplicationProtocolId- The application protocol IDapplicationProtocolMinimumVersion- The minimum supported application protocol versionapplicationProtocolMaximumVersion- The maximum supported application protocol version
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
containerProtocolMinimumVersion
public long containerProtocolMinimumVersion()Returns the value of thecontainerProtocolMinimumVersionrecord component.- Returns:
- the value of the
containerProtocolMinimumVersionrecord component
-
containerProtocolMaximumVersion
public long containerProtocolMaximumVersion()Returns the value of thecontainerProtocolMaximumVersionrecord component.- Returns:
- the value of the
containerProtocolMaximumVersionrecord component
-
applicationProtocolId
Returns the value of theapplicationProtocolIdrecord component.- Returns:
- the value of the
applicationProtocolIdrecord component
-
applicationProtocolMinimumVersion
public long applicationProtocolMinimumVersion()Returns the value of theapplicationProtocolMinimumVersionrecord component.- Returns:
- the value of the
applicationProtocolMinimumVersionrecord component
-
applicationProtocolMaximumVersion
public long applicationProtocolMaximumVersion()Returns the value of theapplicationProtocolMaximumVersionrecord component.- Returns:
- the value of the
applicationProtocolMaximumVersionrecord component
-