Record Class CJ1TypeRecordFieldIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypeRecordFieldIdentifier
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("A type record field identifier.")
public record CJ1TypeRecordFieldIdentifier(CJ1TypeRecordIdentifier typeName, com.io7m.lanark.core.RDottedName fieldName)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1TypeRecordFieldIdentifier(CJ1TypeRecordIdentifier typeName, com.io7m.lanark.core.RDottedName fieldName) Creates an instance of aCJ1TypeRecordFieldIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.io7m.lanark.core.RDottedNameReturns the value of thefieldNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
CJ1TypeRecordFieldIdentifier
public CJ1TypeRecordFieldIdentifier(CJ1TypeRecordIdentifier typeName, com.io7m.lanark.core.RDottedName fieldName) Creates an instance of aCJ1TypeRecordFieldIdentifierrecord class.- Parameters:
typeName- the value for thetypeNamerecord componentfieldName- the value for thefieldNamerecord 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). -
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
fieldName
public com.io7m.lanark.core.RDottedName fieldName()Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-