Record Class VersionMeta.Library
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.VersionMeta.Library
- Enclosing class:
VersionMeta
public static record VersionMeta.Library(VersionMeta.Downloads downloads, String name, Map<String,String> natives, List<VersionMeta.Rule> rules, Object extract)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLibrary(VersionMeta.Downloads downloads, String name, Map<String, String> natives, List<VersionMeta.Rule> rules, Object extract) Creates an instance of aLibraryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartifact()classifierForOS(Platform platform) Returns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.extract()Returns the value of theextractrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanhasNativesForOS(Platform platform) booleanisValidForOS(Platform platform) name()Returns the value of thenamerecord component.natives()Returns the value of thenativesrecord component.rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Library
public Library(VersionMeta.Downloads downloads, String name, Map<String, String> natives, List<VersionMeta.Rule> rules, Object extract) Creates an instance of aLibraryrecord class.- Parameters:
downloads- the value for thedownloadsrecord componentname- the value for thenamerecord componentnatives- the value for thenativesrecord componentrules- the value for therulesrecord componentextract- the value for theextractrecord component
-
-
Method Details
-
isValidForOS
-
hasNatives
public boolean hasNatives() -
hasNativesForOS
-
classifierForOS
-
artifact
-
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). -
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
natives
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
extract
Returns the value of theextractrecord component.- Returns:
- the value of the
extractrecord component
-