Record Class Game.Assets
java.lang.Object
java.lang.Record
io.github.matyrobbrt.curseforgeapi.schemas.game.Game.Assets
- Enclosing class:
- Game
@CurseForgeSchema("https://docs.curseforge.com/#schemagameassets")
public static record Game.Assets(String iconUrl, String tileUrl, String coverUrl)
extends Record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncoverUrl()
Returns the value of thecoverUrl
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.iconUrl()
Returns the value of theiconUrl
record component.tileUrl()
Returns the value of thetileUrl
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Assets
Creates an instance of aAssets
record class.- Parameters:
iconUrl
- the value for theiconUrl
record componenttileUrl
- the value for thetileUrl
record componentcoverUrl
- the value for thecoverUrl
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
iconUrl
Returns the value of theiconUrl
record component.- Returns:
- the value of the
iconUrl
record component
-
tileUrl
Returns the value of thetileUrl
record component.- Returns:
- the value of the
tileUrl
record component
-
coverUrl
Returns the value of thecoverUrl
record component.- Returns:
- the value of the
coverUrl
record component
-