Record Class UploadFileHandler.FileDetails
java.lang.Object
java.lang.Record
org.vaadin.firitin.components.upload.UploadFileHandler.FileDetails
- Record Components:
fileName
- the name of the file in users devicemimeType
- the mime type parsed from the file namecontentLenght
- the length of the file in bytesfolderPath
- the full path and filename within the dropped folder, if available (only when a folder is dropped orUploadFileHandler.chooseFolders()
is used). The path starts with a slash and is relative to the dropped folder.
- Enclosing class:
UploadFileHandler
-
Constructor Summary
ConstructorsConstructorDescriptionFileDetails
(String fileName, String mimeType, long contentLenght, String folderPath) Creates an instance of aFileDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of thecontentLenght
record component.final boolean
Indicates whether some other object is "equal to" this one.fileName()
Returns the value of thefileName
record component.Returns the value of thefolderPath
record component.final int
hashCode()
Returns a hash code value for this object.mimeType()
Returns the value of themimeType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FileDetails
Creates an instance of aFileDetails
record class.- Parameters:
fileName
- the value for thefileName
record componentmimeType
- the value for themimeType
record componentcontentLenght
- the value for thecontentLenght
record componentfolderPath
- the value for thefolderPath
record 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 thecompare
method from their corresponding wrapper classes. -
fileName
-
mimeType
-
contentLenght
public long contentLenght()Returns the value of thecontentLenght
record component.- Returns:
- the value of the
contentLenght
record component
-
folderPath
Returns the value of thefolderPath
record component.- Returns:
- the value of the
folderPath
record component
-