Record Class LibraryInfo.Downloads
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.values.LibraryInfo.Downloads
- All Implemented Interfaces:
Serializable
- Enclosing class:
LibraryInfo
public static record LibraryInfo.Downloads(LibraryInfo.Downloads.ArtifactInfo artifact)
extends Record
implements Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDownloads(LibraryInfo.Downloads.ArtifactInfo artifact) Creates an instance of aDownloadsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionartifact()Returns the value of theartifactrecord 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 component
-
-
Method Details
-
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
-