Record Class CBProtocolCoordinates
java.lang.Object
java.lang.Record
com.io7m.cedarbridge.runtime.api.CBProtocolCoordinates
- Record Components:
id- The protocol IDversion- The protocol version
- All Implemented Interfaces:
Comparable<CBProtocolCoordinates>
public record CBProtocolCoordinates(UUID id, BigInteger version)
extends Record
implements Comparable<CBProtocolCoordinates>
The unique coordinates for a protocol version.
-
Constructor Summary
ConstructorsConstructorDescriptionCBProtocolCoordinates(UUID id, BigInteger version) The unique coordinates for a protocol version. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CBProtocolCoordinates other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
CBProtocolCoordinates
The unique coordinates for a protocol version.- Parameters:
id- The protocol IDversion- The protocol version
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CBProtocolCoordinates>
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
version
-