Package dev.tobee.telegram.model.media
Record Class Document
java.lang.Object
java.lang.Record
dev.tobee.telegram.model.media.Document
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file_id()Returns the value of thefile_idrecord component.fileName()Returns the value of thefileNamerecord component.fileSize()Returns the value of thefileSizerecord component.Returns the value of thefileUniqueIdrecord component.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.thumb()Returns the value of thethumbrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Document
public Document(String file_id, String fileUniqueId, Optional<PhotoSize> thumb, Optional<String> fileName, Optional<String> mimeType, OptionalInt fileSize) Creates an instance of aDocumentrecord class.- Parameters:
file_id- the value for thefile_idrecord componentfileUniqueId- the value for thefileUniqueIdrecord componentthumb- the value for thethumbrecord componentfileName- the value for thefileNamerecord componentmimeType- the value for themimeTyperecord componentfileSize- the value for thefileSizerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
file_id
Returns the value of thefile_idrecord component.- Returns:
- the value of the
file_idrecord component
-
fileUniqueId
Returns the value of thefileUniqueIdrecord component.- Returns:
- the value of the
fileUniqueIdrecord component
-
thumb
Returns the value of thethumbrecord component.- Returns:
- the value of the
thumbrecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
fileSize
Returns the value of thefileSizerecord component.- Returns:
- the value of the
fileSizerecord component
-