Package de.chojo.nexus.entities
Record Class MavenMeta
java.lang.Object
java.lang.Record
de.chojo.nexus.entities.MavenMeta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactId
record component.Returns the value of theclassifier
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextension
record component.groupId()
Returns the value of thegroupId
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.
-
Constructor Details
-
MavenMeta
public MavenMeta(String extension, String groupId, String classifier, String artifactId, String version) Creates an instance of aMavenMeta
record class.- Parameters:
extension
- the value for theextension
record componentgroupId
- the value for thegroupId
record componentclassifier
- the value for theclassifier
record componentartifactId
- the value for theartifactId
record componentversion
- the value for theversion
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
extension
Returns the value of theextension
record component.- Returns:
- the value of the
extension
record component
-
groupId
Returns the value of thegroupId
record component.- Returns:
- the value of the
groupId
record component
-
classifier
Returns the value of theclassifier
record component.- Returns:
- the value of the
classifier
record component
-
artifactId
Returns the value of theartifactId
record component.- Returns:
- the value of the
artifactId
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-