Record Class SharedUtil.SimpleModuleVersionIdentifier
java.lang.Object
java.lang.Record
net.minecraftforge.gradleutils.shared.SharedUtil.SimpleModuleVersionIdentifier
- All Implemented Interfaces:
Serializable,org.gradle.api.artifacts.ModuleVersionIdentifier
- Enclosing class:
SharedUtil
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleModuleVersionIdentifier(org.gradle.api.artifacts.ModuleIdentifier getModule, String getVersion, @Nullable String classifier, String extension) Creates an instance of aSimpleModuleVersionIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theclassifierrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.getDownloadUrl(String prefix) getGroup()org.gradle.api.artifacts.ModuleIdentifierReturns the value of thegetModulerecord component.getName()Returns the value of thegetVersionrecord component.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.withClassifier(String classifier) withExtension(String extension) withVersion(String version)
-
Constructor Details
-
SimpleModuleVersionIdentifier
public SimpleModuleVersionIdentifier(org.gradle.api.artifacts.ModuleIdentifier getModule, String getVersion, @Nullable @Nullable String classifier, String extension) Creates an instance of aSimpleModuleVersionIdentifierrecord class.- Parameters:
getModule- the value for thegetModulerecord componentgetVersion- the value for thegetVersionrecord componentclassifier- the value for theclassifierrecord componentextension- the value for theextensionrecord component
-
-
Method Details
-
getGroup
- Specified by:
getGroupin interfaceorg.gradle.api.artifacts.ModuleVersionIdentifier
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.artifacts.ModuleVersionIdentifier
-
getDownloadUrl
-
getFileName
-
withVersion
-
withClassifier
-
withExtension
-
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). -
getModule
public org.gradle.api.artifacts.ModuleIdentifier getModule()Returns the value of thegetModulerecord component.- Specified by:
getModulein interfaceorg.gradle.api.artifacts.ModuleVersionIdentifier- Returns:
- the value of the
getModulerecord component
-
getVersion
Returns the value of thegetVersionrecord component.- Specified by:
getVersionin interfaceorg.gradle.api.artifacts.ModuleVersionIdentifier- Returns:
- the value of the
getVersionrecord 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
-