Record Class Coordinate
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.util.dist.Coordinate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifact()Returns the value of theartifactrecord component.Returns the value of theclassifierrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.fileName()static Coordinatefrom(org.gradle.api.artifacts.result.ResolvedArtifactResult artifact) group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.module()static CoordinatebooleansameArtifact(Coordinate other) final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Coordinate
public Coordinate(String group, String artifact, String version, String classifier, String extension) Creates an instance of aCoordinaterecord class.- Parameters:
group- the value for thegrouprecord componentartifact- the value for theartifactrecord componentversion- the value for theversionrecord componentclassifier- the value for theclassifierrecord componentextension- the value for theextensionrecord component
-
-
Method Details
-
from
-
parse
-
serialized
-
module
-
withoutClassifier
-
sameArtifact
-
mavenPath
-
fileName
-
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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
artifact
Returns the value of theartifactrecord component.- Returns:
- the value of the
artifactrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-
extension
Returns the value of theextensionrecord component.- Returns:
- the value of the
extensionrecord component
-