Record Class VersionMeta.Downloads
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.VersionMeta.Downloads
- Enclosing class:
VersionMeta
public static record VersionMeta.Downloads(VersionMeta.Download artifact, Map<String, VersionMeta.Download> classifiers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDownloads(VersionMeta.Download artifact, Map<String, VersionMeta.Download> classifiers) Creates an instance of aDownloadsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartifact()Returns the value of theartifactrecord component.classifier(String os) Returns the value of theclassifiersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Downloads
Creates an instance of aDownloadsrecord class.- Parameters:
artifact- the value for theartifactrecord componentclassifiers- the value for theclassifiersrecord component
-
-
Method Details
-
classifier
-
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). -
artifact
Returns the value of theartifactrecord component.- Returns:
- the value of the
artifactrecord component
-
classifiers
Returns the value of theclassifiersrecord component.- Returns:
- the value of the
classifiersrecord component
-