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