Record Class CJ1TypeRecordIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypeRecordIdentifier
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("A type record identifier.")
public record CJ1TypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1TypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName) Creates an instance of aCJ1TypeRecordIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.io7m.lanark.core.RDottedNameReturns the value of thepackageNamerecord component.final StringtoString()Returns a string representation of this record class.com.io7m.lanark.core.RDottedNametypeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
CJ1TypeRecordIdentifier
public CJ1TypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName) Creates an instance of aCJ1TypeRecordIdentifierrecord class.- Parameters:
packageName- the value for thepackageNamerecord componenttypeName- the value for thetypeNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
packageName
public com.io7m.lanark.core.RDottedName packageName()Returns the value of thepackageNamerecord component.- Returns:
- the value of the
packageNamerecord component
-
typeName
public com.io7m.lanark.core.RDottedName typeName()Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-