Record Class PriceRequest
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.requests.openprices.PriceRequest
public record PriceRequest(String categoryTag, LocalDateTime createdGte, LocalDateTime createdLte, String currency, LocalDate date, LocalDate dateGt, LocalDate dateGte, LocalDate dateLt, LocalDate dateLte, Integer dateMonth, Integer dateYear, String discountType, String labelsTagsContains, Integer locationId, Boolean locationIdIsNull, Long locationOsmId, String locationOsmType, String orderBy, String originsTagsContains, String owner, Integer page, Double price, Double priceGt, Double priceGte, Double priceLt, Double priceLte, Boolean priceIsDiscounted, String productCategoriesTagsContains, String productCode, Integer productId, Boolean productIdIsNull, Integer proofId, Boolean proofIdIsNull, Integer size, String type)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPriceRequest
(String categoryTag, LocalDateTime createdGte, LocalDateTime createdLte, String currency, LocalDate date, LocalDate dateGt, LocalDate dateGte, LocalDate dateLt, LocalDate dateLte, Integer dateMonth, Integer dateYear, String discountType, String labelsTagsContains, Integer locationId, Boolean locationIdIsNull, Long locationOsmId, String locationOsmType, String orderBy, String originsTagsContains, String owner, Integer page, Double price, Double priceGt, Double priceGte, Double priceLt, Double priceLte, Boolean priceIsDiscounted, String productCategoriesTagsContains, String productCode, Integer productId, Boolean productIdIsNull, Integer proofId, Boolean proofIdIsNull, Integer size, String type) Creates an instance of aPriceRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriceRequest.Builder
builder()
Returns the value of thecategoryTag
record component.Returns the value of thecreatedGte
record component.Returns the value of thecreatedLte
record component.currency()
Returns the value of thecurrency
record component.date()
Returns the value of thedate
record component.dateGt()
Returns the value of thedateGt
record component.dateGte()
Returns the value of thedateGte
record component.dateLt()
Returns the value of thedateLt
record component.dateLte()
Returns the value of thedateLte
record component.Returns the value of thedateMonth
record component.dateYear()
Returns the value of thedateYear
record component.Returns the value of thediscountType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelabelsTagsContains
record component.Returns the value of thelocationId
record component.Returns the value of thelocationIdIsNull
record component.Returns the value of thelocationOsmId
record component.Returns the value of thelocationOsmType
record component.orderBy()
Returns the value of theorderBy
record component.Returns the value of theoriginsTagsContains
record component.owner()
Returns the value of theowner
record component.page()
Returns the value of thepage
record component.price()
Returns the value of theprice
record component.priceGt()
Returns the value of thepriceGt
record component.priceGte()
Returns the value of thepriceGte
record component.Returns the value of thepriceIsDiscounted
record component.priceLt()
Returns the value of thepriceLt
record component.priceLte()
Returns the value of thepriceLte
record component.Returns the value of theproductCategoriesTagsContains
record component.Returns the value of theproductCode
record component.Returns the value of theproductId
record component.Returns the value of theproductIdIsNull
record component.proofId()
Returns the value of theproofId
record component.Returns the value of theproofIdIsNull
record component.size()
Returns the value of thesize
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
PriceRequest
public PriceRequest(String categoryTag, LocalDateTime createdGte, LocalDateTime createdLte, String currency, LocalDate date, LocalDate dateGt, LocalDate dateGte, LocalDate dateLt, LocalDate dateLte, Integer dateMonth, Integer dateYear, String discountType, String labelsTagsContains, Integer locationId, Boolean locationIdIsNull, Long locationOsmId, String locationOsmType, String orderBy, String originsTagsContains, String owner, Integer page, Double price, Double priceGt, Double priceGte, Double priceLt, Double priceLte, Boolean priceIsDiscounted, String productCategoriesTagsContains, String productCode, Integer productId, Boolean productIdIsNull, Integer proofId, Boolean proofIdIsNull, Integer size, String type) Creates an instance of aPriceRequest
record class.- Parameters:
categoryTag
- the value for thecategoryTag
record componentcreatedGte
- the value for thecreatedGte
record componentcreatedLte
- the value for thecreatedLte
record componentcurrency
- the value for thecurrency
record componentdate
- the value for thedate
record componentdateGt
- the value for thedateGt
record componentdateGte
- the value for thedateGte
record componentdateLt
- the value for thedateLt
record componentdateLte
- the value for thedateLte
record componentdateMonth
- the value for thedateMonth
record componentdateYear
- the value for thedateYear
record componentdiscountType
- the value for thediscountType
record componentlabelsTagsContains
- the value for thelabelsTagsContains
record componentlocationId
- the value for thelocationId
record componentlocationIdIsNull
- the value for thelocationIdIsNull
record componentlocationOsmId
- the value for thelocationOsmId
record componentlocationOsmType
- the value for thelocationOsmType
record componentorderBy
- the value for theorderBy
record componentoriginsTagsContains
- the value for theoriginsTagsContains
record componentowner
- the value for theowner
record componentpage
- the value for thepage
record componentprice
- the value for theprice
record componentpriceGt
- the value for thepriceGt
record componentpriceGte
- the value for thepriceGte
record componentpriceLt
- the value for thepriceLt
record componentpriceLte
- the value for thepriceLte
record componentpriceIsDiscounted
- the value for thepriceIsDiscounted
record componentproductCategoriesTagsContains
- the value for theproductCategoriesTagsContains
record componentproductCode
- the value for theproductCode
record componentproductId
- the value for theproductId
record componentproductIdIsNull
- the value for theproductIdIsNull
record componentproofId
- the value for theproofId
record componentproofIdIsNull
- the value for theproofIdIsNull
record componentsize
- the value for thesize
record componenttype
- the value for thetype
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)
. -
categoryTag
Returns the value of thecategoryTag
record component.- Returns:
- the value of the
categoryTag
record component
-
createdGte
Returns the value of thecreatedGte
record component.- Returns:
- the value of the
createdGte
record component
-
createdLte
Returns the value of thecreatedLte
record component.- Returns:
- the value of the
createdLte
record component
-
currency
Returns the value of thecurrency
record component.- Returns:
- the value of the
currency
record component
-
date
Returns the value of thedate
record component.- Returns:
- the value of the
date
record component
-
dateGt
Returns the value of thedateGt
record component.- Returns:
- the value of the
dateGt
record component
-
dateGte
Returns the value of thedateGte
record component.- Returns:
- the value of the
dateGte
record component
-
dateLt
Returns the value of thedateLt
record component.- Returns:
- the value of the
dateLt
record component
-
dateLte
Returns the value of thedateLte
record component.- Returns:
- the value of the
dateLte
record component
-
dateMonth
Returns the value of thedateMonth
record component.- Returns:
- the value of the
dateMonth
record component
-
dateYear
Returns the value of thedateYear
record component.- Returns:
- the value of the
dateYear
record component
-
discountType
Returns the value of thediscountType
record component.- Returns:
- the value of the
discountType
record component
-
labelsTagsContains
Returns the value of thelabelsTagsContains
record component.- Returns:
- the value of the
labelsTagsContains
record component
-
locationId
Returns the value of thelocationId
record component.- Returns:
- the value of the
locationId
record component
-
locationIdIsNull
Returns the value of thelocationIdIsNull
record component.- Returns:
- the value of the
locationIdIsNull
record component
-
locationOsmId
Returns the value of thelocationOsmId
record component.- Returns:
- the value of the
locationOsmId
record component
-
locationOsmType
Returns the value of thelocationOsmType
record component.- Returns:
- the value of the
locationOsmType
record component
-
orderBy
Returns the value of theorderBy
record component.- Returns:
- the value of the
orderBy
record component
-
originsTagsContains
Returns the value of theoriginsTagsContains
record component.- Returns:
- the value of the
originsTagsContains
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
page
Returns the value of thepage
record component.- Returns:
- the value of the
page
record component
-
price
Returns the value of theprice
record component.- Returns:
- the value of the
price
record component
-
priceGt
Returns the value of thepriceGt
record component.- Returns:
- the value of the
priceGt
record component
-
priceGte
Returns the value of thepriceGte
record component.- Returns:
- the value of the
priceGte
record component
-
priceLt
Returns the value of thepriceLt
record component.- Returns:
- the value of the
priceLt
record component
-
priceLte
Returns the value of thepriceLte
record component.- Returns:
- the value of the
priceLte
record component
-
priceIsDiscounted
Returns the value of thepriceIsDiscounted
record component.- Returns:
- the value of the
priceIsDiscounted
record component
-
productCategoriesTagsContains
Returns the value of theproductCategoriesTagsContains
record component.- Returns:
- the value of the
productCategoriesTagsContains
record component
-
productCode
Returns the value of theproductCode
record component.- Returns:
- the value of the
productCode
record component
-
productId
Returns the value of theproductId
record component.- Returns:
- the value of the
productId
record component
-
productIdIsNull
Returns the value of theproductIdIsNull
record component.- Returns:
- the value of the
productIdIsNull
record component
-
proofId
Returns the value of theproofId
record component.- Returns:
- the value of the
proofId
record component
-
proofIdIsNull
Returns the value of theproofIdIsNull
record component.- Returns:
- the value of the
proofIdIsNull
record component
-
size
Returns the value of thesize
record component.- Returns:
- the value of the
size
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-