Record Class ModAsset
java.lang.Object
java.lang.Record
io.github.matyrobbrt.curseforgeapi.schemas.mod.ModAsset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.int
modId()
Returns the value of themodId
record component.Returns the value of thethumbnailUrl
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.
-
Constructor Details
-
ModAsset
public ModAsset(int id, int modId, String title, String description, String thumbnailUrl, String url) Creates an instance of aModAsset
record class.- Parameters:
id
- the value for theid
record componentmodId
- the value for themodId
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componentthumbnailUrl
- the value for thethumbnailUrl
record componenturl
- the value for theurl
record component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public int id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
modId
public int modId()Returns the value of themodId
record component.- Returns:
- the value of the
modId
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
thumbnailUrl
Returns the value of thethumbnailUrl
record component.- Returns:
- the value of the
thumbnailUrl
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-