Record Class UploadInfo
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.attachment.entity.UploadInfo
- Record Components:
id- 附件IDprovider- 存储提供商partCount- 分片数量partSize- 分片大小。单位 Byte。
public record UploadInfo(String id, FileProviderEnum provider, int partCount, long partSize)
extends Record
文件上传信息
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionUploadInfo(String id, FileProviderEnum provider, int partCount, long partSize) Creates an instance of aUploadInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intReturns the value of thepartCountrecord component.longpartSize()Returns the value of thepartSizerecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
id
-
provider
-
partCount
-
partSize
-