Record Class CAI1TypeRecordIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1TypeRecordIdentifier
- Record Components:
fieldPackageName-fieldTypeName-
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1TypeRecordIdentifier(com.io7m.cedarbridge.runtime.api.CBString fieldPackageName, com.io7m.cedarbridge.runtime.api.CBString fieldTypeName)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType
-
Constructor Summary
ConstructorsConstructorDescriptionCAI1TypeRecordIdentifier(com.io7m.cedarbridge.runtime.api.CBString fieldPackageName, com.io7m.cedarbridge.runtime.api.CBString fieldTypeName) Creates an instance of aCAI1TypeRecordIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1TypeRecordIdentifierdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type CAI1TypeRecordIdentifier.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBStringReturns the value of thefieldPackageNamerecord component.com.io7m.cedarbridge.runtime.api.CBStringReturns the value of thefieldTypeNamerecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1TypeRecordIdentifier $x) Serialize a value of type CAI1TypeRecordIdentifier.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1TypeRecordIdentifier
public CAI1TypeRecordIdentifier(com.io7m.cedarbridge.runtime.api.CBString fieldPackageName, com.io7m.cedarbridge.runtime.api.CBString fieldTypeName) Creates an instance of aCAI1TypeRecordIdentifierrecord class.- Parameters:
fieldPackageName- the value for thefieldPackageNamerecord componentfieldTypeName- the value for thefieldTypeNamerecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1TypeRecordIdentifier $x) throws IOException Serialize a value of type CAI1TypeRecordIdentifier.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1TypeRecordIdentifier deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type CAI1TypeRecordIdentifier.- Parameters:
$context- The serialization context.- Returns:
- A value of type CAI1TypeRecordIdentifier.
- Throws:
IOException
-
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). -
fieldPackageName
public com.io7m.cedarbridge.runtime.api.CBString fieldPackageName()Returns the value of thefieldPackageNamerecord component.- Returns:
- the value of the
fieldPackageNamerecord component
-
fieldTypeName
public com.io7m.cedarbridge.runtime.api.CBString fieldTypeName()Returns the value of thefieldTypeNamerecord component.- Returns:
- the value of the
fieldTypeNamerecord component
-