Record Class FileIndex
java.lang.Object
java.lang.Record
io.github.matyrobbrt.curseforgeapi.schemas.file.FileIndex
@CurseForgeSchema("https://docs.curseforge.com/#tocS_FileIndex")
public record FileIndex(String gameVersion, int fileId, String filename, FileReleaseType releaseType, Integer gameVersionTypeId, Integer modLoaderInt)
extends Record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
fileId()
Returns the value of thefileId
record component.filename()
Returns the value of thefilename
record component.Returns the value of thegameVersion
record component.Returns the value of thegameVersionTypeId
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themodLoaderInt
record component.Returns the value of thereleaseType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FileIndex
public FileIndex(String gameVersion, int fileId, String filename, FileReleaseType releaseType, Integer gameVersionTypeId, Integer modLoaderInt) Creates an instance of aFileIndex
record class.- Parameters:
gameVersion
- the value for thegameVersion
record componentfileId
- the value for thefileId
record componentfilename
- the value for thefilename
record componentreleaseType
- the value for thereleaseType
record componentgameVersionTypeId
- the value for thegameVersionTypeId
record componentmodLoaderInt
- the value for themodLoaderInt
record component
-
-
Method Details
-
modLoaderType
-
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 '=='. -
gameVersion
Returns the value of thegameVersion
record component.- Returns:
- the value of the
gameVersion
record component
-
fileId
public int fileId()Returns the value of thefileId
record component.- Returns:
- the value of the
fileId
record component
-
filename
Returns the value of thefilename
record component.- Returns:
- the value of the
filename
record component
-
releaseType
Returns the value of thereleaseType
record component.- Returns:
- the value of the
releaseType
record component
-
gameVersionTypeId
Returns the value of thegameVersionTypeId
record component.- Returns:
- the value of the
gameVersionTypeId
record component
-
modLoaderInt
Returns the value of themodLoaderInt
record component.- Returns:
- the value of the
modLoaderInt
record component
-