Record Class CAI1TypeScalarIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1TypeScalarIdentifier
- Record Components:
fieldPackageName-fieldTypeName-
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1TypeScalarIdentifier(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
ConstructorsConstructorDescriptionCAI1TypeScalarIdentifier(com.io7m.cedarbridge.runtime.api.CBString fieldPackageName, com.io7m.cedarbridge.runtime.api.CBString fieldTypeName) Creates an instance of aCAI1TypeScalarIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1TypeScalarIdentifierdeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type CAI1TypeScalarIdentifier.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, CAI1TypeScalarIdentifier $x) Serialize a value of type CAI1TypeScalarIdentifier.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1TypeScalarIdentifier
public CAI1TypeScalarIdentifier(com.io7m.cedarbridge.runtime.api.CBString fieldPackageName, com.io7m.cedarbridge.runtime.api.CBString fieldTypeName) Creates an instance of aCAI1TypeScalarIdentifierrecord 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, CAI1TypeScalarIdentifier $x) throws IOException Serialize a value of type CAI1TypeScalarIdentifier.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1TypeScalarIdentifier deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type CAI1TypeScalarIdentifier.- Parameters:
$context- The serialization context.- Returns:
- A value of type CAI1TypeScalarIdentifier.
- 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
-