Record Class MultipartPart
java.lang.Object
java.lang.Record
io.micronaut.objectstorage.multipart.MultipartPart
- Record Components:
partNumber- the positive part numbereTag- the provider entity tag for the partsize- the uploaded part size in byteschecksum- an optional portable checksum value
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartPart(int partNumber, @NonNull String eTag, long size) MultipartPart(int partNumber, @NonNull String eTag, long size, @Nullable String checksum) Creates an instance of aMultipartPartrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringchecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull StringeTag()Returns the value of theeTagrecord component.@NonNull StringgetETag()intlonggetSize()final inthashCode()Returns a hash code value for this object.intReturns the value of thepartNumberrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MultipartPart
- Parameters:
partNumber- the positive part numbereTag- the provider entity tag for the partsize- the uploaded part size in bytes
-
MultipartPart
Creates an instance of aMultipartPartrecord class.- Parameters:
partNumber- the value for thepartNumberrecord componenteTag- the value for theeTagrecord componentsize- the value for thesizerecord componentchecksum- the value for thechecksumrecord component
-
-
Method Details
-
getPartNumber
public int getPartNumber()- Returns:
- the positive part number
-
getETag
- Returns:
- the provider entity tag for the part
-
getSize
public long getSize()- Returns:
- the uploaded part size in bytes
-
getChecksum
-
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. -
partNumber
public int partNumber()Returns the value of thepartNumberrecord component.- Returns:
- the value of the
partNumberrecord component
-
eTag
-
size
-
checksum
-