Record Class PassportFile
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.PassportFile
- All Implemented Interfaces:
Serializable,ApiResult
public record PassportFile(String fileId, String fileUniqueId, int fileSize, int fileDate)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPassportFile(String fileId, String fileUniqueId, int fileSize, int fileDate) Creates an instance of aPassportFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfileDate()Returns the value of thefileDaterecord component.fileId()Returns the value of thefileIdrecord component.intfileSize()Returns the value of thefileSizerecord component.Returns the value of thefileUniqueIdrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PassportFile
Creates an instance of aPassportFilerecord class.- Parameters:
fileId- the value for thefileIdrecord componentfileUniqueId- the value for thefileUniqueIdrecord componentfileSize- the value for thefileSizerecord componentfileDate- the value for thefileDaterecord 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 '=='. -
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-
fileUniqueId
Returns the value of thefileUniqueIdrecord component.- Returns:
- the value of the
fileUniqueIdrecord component
-
fileSize
public int fileSize()Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-
fileDate
public int fileDate()Returns the value of thefileDaterecord component.- Returns:
- the value of the
fileDaterecord component
-