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 Summary
ConstructorsConstructorDescriptionItemData
(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 aItemData
record class. -
Method Summary
Modifier and TypeMethodDescriptionbatch()
Returns the value of thebatch
record component.color()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theharmfulSubstances
record component.final int
hashCode()
Returns a hash code value for this object.itemId()
Returns the value of theitemId
record component.Returns the value of thematerials
record component.Returns the value of thepackaging
record component.Returns the value of theproductDescription
record component.Returns the value of theproductionCountry
record component.Returns the value of theproductionDate
record component.Returns the value of theproductName
record component.Returns the value of theproductPicture
record component.Returns the value of theproductUrl
record component.Returns the value of thereciclability
record component.Returns the value of thereleasesMicroplastics
record component.size()
Returns the value of thesize
record component.style()
Returns the value of thestyle
record component.Returns the value of thestyleCode
record component.final String
toString()
Returns a string representation of this record class.trace()
Returns the value of thetrace
record component.Returns the value of theverificationType
record component.
-
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 aItemData
record class.- Parameters:
itemId
- the value for theitemId
record componentproductName
- the value for theproductName
record componentproductDescription
- the value for theproductDescription
record componentproductUrl
- the value for theproductUrl
record componentproductPicture
- the value for theproductPicture
record componentmaterials
- the value for thematerials
record componenttrace
- the value for thetrace
record componentreciclability
- the value for thereciclability
record componentharmfulSubstances
- the value for theharmfulSubstances
record componentreleasesMicroplastics
- the value for thereleasesMicroplastics
record componentpackaging
- the value for thepackaging
record componentbatch
- the value for thebatch
record componentproductionCountry
- the value for theproductionCountry
record componentstyleCode
- the value for thestyleCode
record componentstyle
- the value for thestyle
record componentsize
- the value for thesize
record componentcolor
- the value for thecolor
record componentproductionDate
- the value for theproductionDate
record componentverificationType
- the value for theverificationType
record 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)
. -
itemId
Returns the value of theitemId
record component.- Returns:
- the value of the
itemId
record component
-
productName
Returns the value of theproductName
record component.- Returns:
- the value of the
productName
record component
-
productDescription
Returns the value of theproductDescription
record component.- Returns:
- the value of the
productDescription
record component
-
productUrl
Returns the value of theproductUrl
record component.- Returns:
- the value of the
productUrl
record component
-
productPicture
Returns the value of theproductPicture
record component.- Returns:
- the value of the
productPicture
record component
-
materials
Returns the value of thematerials
record component.- Returns:
- the value of the
materials
record component
-
trace
Returns the value of thetrace
record component.- Returns:
- the value of the
trace
record component
-
reciclability
Returns the value of thereciclability
record component.- Returns:
- the value of the
reciclability
record component
-
harmfulSubstances
Returns the value of theharmfulSubstances
record component.- Returns:
- the value of the
harmfulSubstances
record component
-
releasesMicroplastics
Returns the value of thereleasesMicroplastics
record component.- Returns:
- the value of the
releasesMicroplastics
record component
-
packaging
Returns the value of thepackaging
record component.- Returns:
- the value of the
packaging
record component
-
batch
Returns the value of thebatch
record component.- Returns:
- the value of the
batch
record component
-
productionCountry
Returns the value of theproductionCountry
record component.- Returns:
- the value of the
productionCountry
record component
-
styleCode
Returns the value of thestyleCode
record component.- Returns:
- the value of the
styleCode
record component
-
style
Returns the value of thestyle
record component.- Returns:
- the value of the
style
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-
productionDate
Returns the value of theproductionDate
record component.- Returns:
- the value of the
productionDate
record component
-
verificationType
Returns the value of theverificationType
record component.- Returns:
- the value of the
verificationType
record component
-