Record Class CJ1TypePackageIdentifier
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1TypePackageIdentifier
- All Implemented Interfaces:
CJ1ValueType
@JsonClassDescription("A type package identifier.")
public record CJ1TypePackageIdentifier(com.io7m.lanark.core.RDottedName name, String version)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1TypePackageIdentifier(com.io7m.lanark.core.RDottedName name, String version) Creates an instance of aCJ1TypePackageIdentifierrecord 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.RDottedNamename()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
CJ1TypePackageIdentifier
public CJ1TypePackageIdentifier(@JsonPropertyDescription("The package name.") com.io7m.lanark.core.RDottedName name, @JsonPropertyDescription("The package version.") String version) Creates an instance of aCJ1TypePackageIdentifierrecord class.- Parameters:
name- the value for thenamerecord componentversion- the value for theversionrecord 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). -
name
@JsonPropertyDescription("The package name.") public com.io7m.lanark.core.RDottedName name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-