Record Class PassportFile
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.PassportFile
- All Implemented Interfaces:
Serializable, ApiResult
-
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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-