Package com.adobe.testing.s3mock.dto
Record Class CompletedPart
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.CompletedPart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechecksumCRC32record component.Returns the value of thechecksumCRC32Crecord component.Returns the value of thechecksumSHA1record component.Returns the value of thechecksumSHA256record component.final booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepartNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompletedPart
public CompletedPart(Integer partNumber, String etag, String checksumCRC32, String checksumCRC32C, String checksumSHA1, String checksumSHA256) Creates an instance of aCompletedPartrecord class.- Parameters:
partNumber- the value for thepartNumberrecord componentetag- the value for theetagrecord componentchecksumCRC32- the value for thechecksumCRC32record componentchecksumCRC32C- the value for thechecksumCRC32Crecord componentchecksumSHA1- the value for thechecksumSHA1record componentchecksumSHA256- the value for thechecksumSHA256record 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). -
partNumber
Returns the value of thepartNumberrecord component.- Returns:
- the value of the
partNumberrecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-
checksumCRC32
Returns the value of thechecksumCRC32record component.- Returns:
- the value of the
checksumCRC32record component
-
checksumCRC32C
Returns the value of thechecksumCRC32Crecord component.- Returns:
- the value of the
checksumCRC32Crecord component
-
checksumSHA1
Returns the value of thechecksumSHA1record component.- Returns:
- the value of the
checksumSHA1record component
-
checksumSHA256
Returns the value of thechecksumSHA256record component.- Returns:
- the value of the
checksumSHA256record component
-