Record Class ProductSearchRequest
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.requests.ProductSearchRequest
public record ProductSearchRequest(String additivesTags, String allergensTags, String brandsTags, String categoriesTags, String countriesTagsEn, String embCodesTags, String labelsTags, String manufacturingPlacesTags, String nutritionGradesTags, String originsTags, String packagingTagsDe, String purchasePlacesTags, String statesTags, String storesTags, String tracesTags, String fields, String sortBy, Integer page, Integer pageSize)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProductSearchRequest
(String additivesTags, String allergensTags, String brandsTags, String categoriesTags, String countriesTagsEn, String embCodesTags, String labelsTags, String manufacturingPlacesTags, String nutritionGradesTags, String originsTags, String packagingTagsDe, String purchasePlacesTags, String statesTags, String storesTags, String tracesTags, String fields, String sortBy, Integer page, Integer pageSize) Creates an instance of aProductSearchRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditivesTags
record component.Returns the value of theallergensTags
record component.Returns the value of thebrandsTags
record component.static ProductSearchRequest.Builder
builder()
Returns the value of thecategoriesTags
record component.Returns the value of thecountriesTagsEn
record component.Returns the value of theembCodesTags
record component.final boolean
Indicates whether some other object is "equal to" this one.fields()
Returns the value of thefields
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelabelsTags
record component.Returns the value of themanufacturingPlacesTags
record component.Returns the value of thenutritionGradesTags
record component.Returns the value of theoriginsTags
record component.Returns the value of thepackagingTagsDe
record component.page()
Returns the value of thepage
record component.pageSize()
Returns the value of thepageSize
record component.Returns the value of thepurchasePlacesTags
record component.sortBy()
Returns the value of thesortBy
record component.Returns the value of thestatesTags
record component.Returns the value of thestoresTags
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetracesTags
record component.
-
Constructor Details
-
ProductSearchRequest
public ProductSearchRequest(String additivesTags, String allergensTags, String brandsTags, String categoriesTags, String countriesTagsEn, String embCodesTags, String labelsTags, String manufacturingPlacesTags, String nutritionGradesTags, String originsTags, String packagingTagsDe, String purchasePlacesTags, String statesTags, String storesTags, String tracesTags, String fields, String sortBy, Integer page, Integer pageSize) Creates an instance of aProductSearchRequest
record class.- Parameters:
additivesTags
- the value for theadditivesTags
record componentallergensTags
- the value for theallergensTags
record componentbrandsTags
- the value for thebrandsTags
record componentcategoriesTags
- the value for thecategoriesTags
record componentcountriesTagsEn
- the value for thecountriesTagsEn
record componentembCodesTags
- the value for theembCodesTags
record componentlabelsTags
- the value for thelabelsTags
record componentmanufacturingPlacesTags
- the value for themanufacturingPlacesTags
record componentnutritionGradesTags
- the value for thenutritionGradesTags
record componentoriginsTags
- the value for theoriginsTags
record componentpackagingTagsDe
- the value for thepackagingTagsDe
record componentpurchasePlacesTags
- the value for thepurchasePlacesTags
record componentstatesTags
- the value for thestatesTags
record componentstoresTags
- the value for thestoresTags
record componenttracesTags
- the value for thetracesTags
record componentfields
- the value for thefields
record componentsortBy
- the value for thesortBy
record componentpage
- the value for thepage
record componentpageSize
- the value for thepageSize
record 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)
. -
additivesTags
Returns the value of theadditivesTags
record component.- Returns:
- the value of the
additivesTags
record component
-
allergensTags
Returns the value of theallergensTags
record component.- Returns:
- the value of the
allergensTags
record component
-
brandsTags
Returns the value of thebrandsTags
record component.- Returns:
- the value of the
brandsTags
record component
-
categoriesTags
Returns the value of thecategoriesTags
record component.- Returns:
- the value of the
categoriesTags
record component
-
countriesTagsEn
Returns the value of thecountriesTagsEn
record component.- Returns:
- the value of the
countriesTagsEn
record component
-
embCodesTags
Returns the value of theembCodesTags
record component.- Returns:
- the value of the
embCodesTags
record component
-
labelsTags
Returns the value of thelabelsTags
record component.- Returns:
- the value of the
labelsTags
record component
-
manufacturingPlacesTags
Returns the value of themanufacturingPlacesTags
record component.- Returns:
- the value of the
manufacturingPlacesTags
record component
-
nutritionGradesTags
Returns the value of thenutritionGradesTags
record component.- Returns:
- the value of the
nutritionGradesTags
record component
-
originsTags
Returns the value of theoriginsTags
record component.- Returns:
- the value of the
originsTags
record component
-
packagingTagsDe
Returns the value of thepackagingTagsDe
record component.- Returns:
- the value of the
packagingTagsDe
record component
-
purchasePlacesTags
Returns the value of thepurchasePlacesTags
record component.- Returns:
- the value of the
purchasePlacesTags
record component
-
statesTags
Returns the value of thestatesTags
record component.- Returns:
- the value of the
statesTags
record component
-
storesTags
Returns the value of thestoresTags
record component.- Returns:
- the value of the
storesTags
record component
-
tracesTags
Returns the value of thetracesTags
record component.- Returns:
- the value of the
tracesTags
record component
-
fields
Returns the value of thefields
record component.- Returns:
- the value of the
fields
record component
-
sortBy
Returns the value of thesortBy
record component.- Returns:
- the value of the
sortBy
record component
-
page
Returns the value of thepage
record component.- Returns:
- the value of the
page
record component
-
pageSize
Returns the value of thepageSize
record component.- Returns:
- the value of the
pageSize
record component
-