Record Class ItemData

java.lang.Object
java.lang.Record
com.persequor.saga.modules.dpp.models.ItemData

public record ItemData(String itemId, String productName, String productDescription, String productUrl, String productPicture, List<KeyValuePair> materials, List<ItemTrace> trace, String reciclability, List<KeyValuePair> harmfulSubstances, Boolean releasesMicroplastics, String packaging, String batch, String productionCountry, String styleCode, String style, String size, String color, ZonedDateTime productionDate, VerificationType verificationType) extends Record
  • Constructor Details

    • ItemData

      public ItemData(String itemId, String productName, String productDescription, String productUrl, String productPicture, List<KeyValuePair> materials, List<ItemTrace> trace, String reciclability, List<KeyValuePair> harmfulSubstances, Boolean releasesMicroplastics, String packaging, String batch, String productionCountry, String styleCode, String style, String size, String color, ZonedDateTime productionDate, VerificationType verificationType)
      Creates an instance of a ItemData record class.
      Parameters:
      itemId - the value for the itemId record component
      productName - the value for the productName record component
      productDescription - the value for the productDescription record component
      productUrl - the value for the productUrl record component
      productPicture - the value for the productPicture record component
      materials - the value for the materials record component
      trace - the value for the trace record component
      reciclability - the value for the reciclability record component
      harmfulSubstances - the value for the harmfulSubstances record component
      releasesMicroplastics - the value for the releasesMicroplastics record component
      packaging - the value for the packaging record component
      batch - the value for the batch record component
      productionCountry - the value for the productionCountry record component
      styleCode - the value for the styleCode record component
      style - the value for the style record component
      size - the value for the size record component
      color - the value for the color record component
      productionDate - the value for the productionDate record component
      verificationType - the value for the verificationType 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.
    • itemId

      public String itemId()
      Returns the value of the itemId record component.
      Returns:
      the value of the itemId record component
    • productName

      public String productName()
      Returns the value of the productName record component.
      Returns:
      the value of the productName record component
    • productDescription

      public String productDescription()
      Returns the value of the productDescription record component.
      Returns:
      the value of the productDescription record component
    • productUrl

      public String productUrl()
      Returns the value of the productUrl record component.
      Returns:
      the value of the productUrl record component
    • productPicture

      public String productPicture()
      Returns the value of the productPicture record component.
      Returns:
      the value of the productPicture record component
    • materials

      public List<KeyValuePair> materials()
      Returns the value of the materials record component.
      Returns:
      the value of the materials record component
    • trace

      public List<ItemTrace> trace()
      Returns the value of the trace record component.
      Returns:
      the value of the trace record component
    • reciclability

      public String reciclability()
      Returns the value of the reciclability record component.
      Returns:
      the value of the reciclability record component
    • harmfulSubstances

      public List<KeyValuePair> harmfulSubstances()
      Returns the value of the harmfulSubstances record component.
      Returns:
      the value of the harmfulSubstances record component
    • releasesMicroplastics

      public Boolean releasesMicroplastics()
      Returns the value of the releasesMicroplastics record component.
      Returns:
      the value of the releasesMicroplastics record component
    • packaging

      public String packaging()
      Returns the value of the packaging record component.
      Returns:
      the value of the packaging record component
    • batch

      public String batch()
      Returns the value of the batch record component.
      Returns:
      the value of the batch record component
    • productionCountry

      public String productionCountry()
      Returns the value of the productionCountry record component.
      Returns:
      the value of the productionCountry record component
    • styleCode

      public String styleCode()
      Returns the value of the styleCode record component.
      Returns:
      the value of the styleCode record component
    • style

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

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

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • productionDate

      public ZonedDateTime productionDate()
      Returns the value of the productionDate record component.
      Returns:
      the value of the productionDate record component
    • verificationType

      public VerificationType verificationType()
      Returns the value of the verificationType record component.
      Returns:
      the value of the verificationType record component