Record Class ProductImageUploadRequest
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.requests.images.ProductImageUploadRequest
public record ProductImageUploadRequest(String productCode, org.springframework.web.multipart.MultipartFile file, ImageFormat imageFormat, ImageFacet facet, Language language)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProductImageUploadRequest(String productCode, org.springframework.web.multipart.MultipartFile file, ImageFormat imageFormat, ImageFacet facet, Language language) Creates an instance of aProductImageUploadRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.facet()Returns the value of thefacetrecord component.org.springframework.web.multipart.MultipartFilefile()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theimageFormatrecord component.language()Returns the value of thelanguagerecord component.Returns the value of theproductCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProductImageUploadRequest
public ProductImageUploadRequest(String productCode, org.springframework.web.multipart.MultipartFile file, ImageFormat imageFormat, ImageFacet facet, Language language) Creates an instance of aProductImageUploadRequestrecord class.- Parameters:
productCode- the value for theproductCoderecord componentfile- the value for thefilerecord componentimageFormat- the value for theimageFormatrecord componentfacet- the value for thefacetrecord componentlanguage- the value for thelanguagerecord component
-
-
Method Details
-
builder
-
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). -
productCode
Returns the value of theproductCoderecord component.- Returns:
- the value of the
productCoderecord component
-
file
public org.springframework.web.multipart.MultipartFile file()Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
imageFormat
Returns the value of theimageFormatrecord component.- Returns:
- the value of the
imageFormatrecord component
-
facet
Returns the value of thefacetrecord component.- Returns:
- the value of the
facetrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-