Record Class File
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.File
- All Implemented Interfaces:
Serializable, ApiResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.@Nullable StringfilePath()Returns the value of thefilePathrecord component.@Nullable LongfileSize()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
-
File
public File(String fileId, String fileUniqueId, @Nullable @Nullable Long fileSize, @Nullable @Nullable String filePath) Creates an instance of aFilerecord class.- Parameters:
fileId- the value for thefileIdrecord componentfileUniqueId- the value for thefileUniqueIdrecord componentfileSize- the value for thefileSizerecord componentfilePath- the value for thefilePathrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-