Record Class CATypeRecordIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CATypeRecordIdentifier
- Record Components:
packageName- The package nametypeName- The type name
- All Implemented Interfaces:
Comparable<CATypeRecordIdentifier>
public record CATypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName)
extends Record
implements Comparable<CATypeRecordIdentifier>
A fully qualified record type identifier.
-
Constructor Summary
ConstructorsConstructorDescriptionCATypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName) A fully qualified record type identifier. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CATypeRecordIdentifier other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static CATypeRecordIdentifierParse a type record identifier.com.io7m.lanark.core.RDottedNameReturns the value of thepackageNamerecord component.toString()Returns a string representation of this record class.com.io7m.lanark.core.RDottedNametypeName()Returns the value of thetypeNamerecord component.
-
Constructor Details
-
CATypeRecordIdentifier
public CATypeRecordIdentifier(com.io7m.lanark.core.RDottedName packageName, com.io7m.lanark.core.RDottedName typeName) A fully qualified record type identifier.- Parameters:
packageName- The package nametypeName- The type name
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<CATypeRecordIdentifier>
-
of
Parse a type record identifier.- Parameters:
text- The text- Returns:
- An identifier
-
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
-