Record Class LibraryInfo.Downloads.ArtifactInfo
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.values.LibraryInfo.Downloads.ArtifactInfo
- All Implemented Interfaces:
Serializable
- Enclosing class:
LibraryInfo.Downloads
public static record LibraryInfo.Downloads.ArtifactInfo(String path, String url, String sha1, long size)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactInfo(String path, String url, String sha1, long size) Creates an instance of aArtifactInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.sha1()Returns the value of thesha1record component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.validateUrl(boolean offline)
-
Constructor Details
-
ArtifactInfo
Creates an instance of aArtifactInforecord class.- Parameters:
path- the value for thepathrecord componenturl- the value for theurlrecord componentsha1- the value for thesha1record componentsize- the value for thesizerecord component
-
-
Method Details
-
validateUrl
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
sha1
Returns the value of thesha1record component.- Returns:
- the value of the
sha1record component
-
size
public long size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-