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 aItemDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Returns the value of thebatchrecord component.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theharmfulSubstancesrecord component.final inthashCode()Returns a hash code value for this object.itemId()Returns the value of theitemIdrecord component.Returns the value of thematerialsrecord component.Returns the value of thepackagingrecord component.Returns the value of theproductDescriptionrecord component.Returns the value of theproductionCountryrecord component.Returns the value of theproductionDaterecord component.Returns the value of theproductNamerecord component.Returns the value of theproductPicturerecord component.Returns the value of theproductUrlrecord component.Returns the value of thereciclabilityrecord component.Returns the value of thereleasesMicroplasticsrecord component.size()Returns the value of thesizerecord component.style()Returns the value of thestylerecord component.Returns the value of thestyleCoderecord component.final StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.Returns the value of theverificationTyperecord 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 aItemDatarecord class.- Parameters:
itemId- the value for theitemIdrecord componentproductName- the value for theproductNamerecord componentproductDescription- the value for theproductDescriptionrecord componentproductUrl- the value for theproductUrlrecord componentproductPicture- the value for theproductPicturerecord componentmaterials- the value for thematerialsrecord componenttrace- the value for thetracerecord componentreciclability- the value for thereciclabilityrecord componentharmfulSubstances- the value for theharmfulSubstancesrecord componentreleasesMicroplastics- the value for thereleasesMicroplasticsrecord componentpackaging- the value for thepackagingrecord componentbatch- the value for thebatchrecord componentproductionCountry- the value for theproductionCountryrecord componentstyleCode- the value for thestyleCoderecord componentstyle- the value for thestylerecord componentsize- the value for thesizerecord componentcolor- the value for thecolorrecord componentproductionDate- the value for theproductionDaterecord componentverificationType- the value for theverificationTyperecord 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 theitemIdrecord component.- Returns:
- the value of the
itemIdrecord component
-
productName
Returns the value of theproductNamerecord component.- Returns:
- the value of the
productNamerecord component
-
productDescription
Returns the value of theproductDescriptionrecord component.- Returns:
- the value of the
productDescriptionrecord component
-
productUrl
Returns the value of theproductUrlrecord component.- Returns:
- the value of the
productUrlrecord component
-
productPicture
Returns the value of theproductPicturerecord component.- Returns:
- the value of the
productPicturerecord component
-
materials
Returns the value of thematerialsrecord component.- Returns:
- the value of the
materialsrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
reciclability
Returns the value of thereciclabilityrecord component.- Returns:
- the value of the
reciclabilityrecord component
-
harmfulSubstances
Returns the value of theharmfulSubstancesrecord component.- Returns:
- the value of the
harmfulSubstancesrecord component
-
releasesMicroplastics
Returns the value of thereleasesMicroplasticsrecord component.- Returns:
- the value of the
releasesMicroplasticsrecord component
-
packaging
Returns the value of thepackagingrecord component.- Returns:
- the value of the
packagingrecord component
-
batch
Returns the value of thebatchrecord component.- Returns:
- the value of the
batchrecord component
-
productionCountry
Returns the value of theproductionCountryrecord component.- Returns:
- the value of the
productionCountryrecord component
-
styleCode
Returns the value of thestyleCoderecord component.- Returns:
- the value of the
styleCoderecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
productionDate
Returns the value of theproductionDaterecord component.- Returns:
- the value of the
productionDaterecord component
-
verificationType
Returns the value of theverificationTyperecord component.- Returns:
- the value of the
verificationTyperecord component
-