Record Class FingerprintMatch
java.lang.Object
java.lang.Record
io.github.matyrobbrt.curseforgeapi.schemas.fingerprint.FingerprintMatch
@CurseForgeSchema("https://docs.curseforge.com/#tocS_FingerprintMatch")
public record FingerprintMatch(int id, File file, List<File> latestFiles)
extends Record
-
Constructor Summary
ConstructorDescriptionFingerprintMatch
(int id, File file, List<File> latestFiles) Creates an instance of aFingerprintMatch
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.file()
Returns the value of thefile
record component.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.Returns the value of thelatestFiles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FingerprintMatch
Creates an instance of aFingerprintMatch
record class.- Parameters:
id
- the value for theid
record componentfile
- the value for thefile
record componentlatestFiles
- the value for thelatestFiles
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
-
file
Returns the value of thefile
record component.- Returns:
- the value of the
file
record component
-
latestFiles
Returns the value of thelatestFiles
record component.- Returns:
- the value of the
latestFiles
record component
-