Record Class CATypePackageImport
java.lang.Object
java.lang.Record
com.io7m.cardant.model.type_package.CATypePackageImport
- Record Components:
packageName- The package nameversionRange- The allowed version range
public record CATypePackageImport(com.io7m.lanark.core.RDottedName packageName, com.io7m.verona.core.VersionRange versionRange)
extends Record
An import declaration for a package.
-
Constructor Summary
ConstructorsConstructorDescriptionCATypePackageImport(com.io7m.lanark.core.RDottedName packageName, com.io7m.verona.core.VersionRange versionRange) An import declaration for a package. -
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.verona.core.VersionRangeReturns the value of theversionRangerecord component.
-
Constructor Details
-
CATypePackageImport
public CATypePackageImport(com.io7m.lanark.core.RDottedName packageName, com.io7m.verona.core.VersionRange versionRange) An import declaration for a package.- Parameters:
packageName- The package nameversionRange- The allowed version range
-
-
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
-
versionRange
public com.io7m.verona.core.VersionRange versionRange()Returns the value of theversionRangerecord component.- Returns:
- the value of the
versionRangerecord component
-