Package net.javasauce.ss.util
Record Class VersionManifest.Library
java.lang.Object
java.lang.Record
net.javasauce.ss.util.VersionManifest.Library
- Enclosing class:
VersionManifest
public static record VersionManifest.Library(@Nullable net.covers1624.quack.maven.MavenNotation name, @Nullable VersionManifest.LibraryExtract extract, @Nullable VersionManifest.LibraryDownloads downloads, @Nullable List<VersionManifest.Rule> rules, @Nullable Map<VersionManifest.OS,String> natives, @Nullable String url)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLibrary(@Nullable net.covers1624.quack.maven.MavenNotation name, @Nullable VersionManifest.LibraryExtract extract, @Nullable VersionManifest.LibraryDownloads downloads, @Nullable List<VersionManifest.Rule> rules, @Nullable Map<VersionManifest.OS, String> natives, @Nullable String url) Creates an instance of aLibraryrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable VersionManifest.LibraryDownloadsReturns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable VersionManifest.LibraryExtractextract()Returns the value of theextractrecord component.final inthashCode()Returns a hash code value for this object.net.covers1624.quack.maven.MavenNotationname()Returns the value of thenamerecord component.natives()Returns the value of thenativesrecord component.@Nullable List<VersionManifest.Rule> rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
Library
public Library(@Nullable @Nullable net.covers1624.quack.maven.MavenNotation name, @Nullable @Nullable VersionManifest.LibraryExtract extract, @Nullable @Nullable VersionManifest.LibraryDownloads downloads, @Nullable @Nullable List<VersionManifest.Rule> rules, @Nullable @Nullable Map<VersionManifest.OS, String> natives, @Nullable @Nullable String url) Creates an instance of aLibraryrecord class.- Parameters:
name- the value for thenamerecord componentextract- the value for theextractrecord componentdownloads- the value for thedownloadsrecord componentrules- the value for therulesrecord componentnatives- the value for thenativesrecord componenturl- the value for theurlrecord component
-
-
Method Details
-
name
public net.covers1624.quack.maven.MavenNotation name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
natives
Returns the value of thenativesrecord component.- Returns:
- the value of the
nativesrecord component
-
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). -
extract
Returns the value of theextractrecord component.- Returns:
- the value of the
extractrecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-