Record Class ObjectPart

java.lang.Object
java.lang.Record
com.adobe.testing.s3mock.dto.ObjectPart

public record ObjectPart(String checksumCRC32, String checksumCRC32C, String checksumSHA1, String checksumSHA256, Long size, Integer partNumber) extends Record
  • Constructor Details

    • ObjectPart

      public ObjectPart(String checksumCRC32, String checksumCRC32C, String checksumSHA1, String checksumSHA256, Long size, Integer partNumber)
      Creates an instance of a ObjectPart record class.
      Parameters:
      checksumCRC32 - the value for the checksumCRC32 record component
      checksumCRC32C - the value for the checksumCRC32C record component
      checksumSHA1 - the value for the checksumSHA1 record component
      checksumSHA256 - the value for the checksumSHA256 record component
      size - the value for the size record component
      partNumber - the value for the partNumber record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • checksumCRC32

      public String checksumCRC32()
      Returns the value of the checksumCRC32 record component.
      Returns:
      the value of the checksumCRC32 record component
    • checksumCRC32C

      public String checksumCRC32C()
      Returns the value of the checksumCRC32C record component.
      Returns:
      the value of the checksumCRC32C record component
    • checksumSHA1

      public String checksumSHA1()
      Returns the value of the checksumSHA1 record component.
      Returns:
      the value of the checksumSHA1 record component
    • checksumSHA256

      public String checksumSHA256()
      Returns the value of the checksumSHA256 record component.
      Returns:
      the value of the checksumSHA256 record component
    • size

      public Long size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • partNumber

      public Integer partNumber()
      Returns the value of the partNumber record component.
      Returns:
      the value of the partNumber record component