Package com.adobe.testing.s3mock.dto
Record Class Checksum
java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.Checksum
-
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.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Checksum
public Checksum(String checksumCRC32, String checksumCRC32C, String checksumSHA1, String checksumSHA256) Creates an instance of aChecksumrecord class.- Parameters:
checksumCRC32- 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). -
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
-