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 aPriceRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriceRequest.Builderbuilder()Returns the value of thecategoryTagrecord component.Returns the value of thecreatedGterecord component.Returns the value of thecreatedLterecord component.currency()Returns the value of thecurrencyrecord component.date()Returns the value of thedaterecord component.dateGt()Returns the value of thedateGtrecord component.dateGte()Returns the value of thedateGterecord component.dateLt()Returns the value of thedateLtrecord component.dateLte()Returns the value of thedateLterecord component.Returns the value of thedateMonthrecord component.dateYear()Returns the value of thedateYearrecord component.Returns the value of thediscountTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelabelsTagsContainsrecord component.Returns the value of thelocationIdrecord component.Returns the value of thelocationIdIsNullrecord component.Returns the value of thelocationOsmIdrecord component.Returns the value of thelocationOsmTyperecord component.orderBy()Returns the value of theorderByrecord component.Returns the value of theoriginsTagsContainsrecord component.owner()Returns the value of theownerrecord component.page()Returns the value of thepagerecord component.price()Returns the value of thepricerecord component.priceGt()Returns the value of thepriceGtrecord component.priceGte()Returns the value of thepriceGterecord component.Returns the value of thepriceIsDiscountedrecord component.priceLt()Returns the value of thepriceLtrecord component.priceLte()Returns the value of thepriceLterecord component.Returns the value of theproductCategoriesTagsContainsrecord component.Returns the value of theproductCoderecord component.Returns the value of theproductIdrecord component.Returns the value of theproductIdIsNullrecord component.proofId()Returns the value of theproofIdrecord component.Returns the value of theproofIdIsNullrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord 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 aPriceRequestrecord class.- Parameters:
categoryTag- the value for thecategoryTagrecord componentcreatedGte- the value for thecreatedGterecord componentcreatedLte- the value for thecreatedLterecord componentcurrency- the value for thecurrencyrecord componentdate- the value for thedaterecord componentdateGt- the value for thedateGtrecord componentdateGte- the value for thedateGterecord componentdateLt- the value for thedateLtrecord componentdateLte- the value for thedateLterecord componentdateMonth- the value for thedateMonthrecord componentdateYear- the value for thedateYearrecord componentdiscountType- the value for thediscountTyperecord componentlabelsTagsContains- the value for thelabelsTagsContainsrecord componentlocationId- the value for thelocationIdrecord componentlocationIdIsNull- the value for thelocationIdIsNullrecord componentlocationOsmId- the value for thelocationOsmIdrecord componentlocationOsmType- the value for thelocationOsmTyperecord componentorderBy- the value for theorderByrecord componentoriginsTagsContains- the value for theoriginsTagsContainsrecord componentowner- the value for theownerrecord componentpage- the value for thepagerecord componentprice- the value for thepricerecord componentpriceGt- the value for thepriceGtrecord componentpriceGte- the value for thepriceGterecord componentpriceLt- the value for thepriceLtrecord componentpriceLte- the value for thepriceLterecord componentpriceIsDiscounted- the value for thepriceIsDiscountedrecord componentproductCategoriesTagsContains- the value for theproductCategoriesTagsContainsrecord componentproductCode- the value for theproductCoderecord componentproductId- the value for theproductIdrecord componentproductIdIsNull- the value for theproductIdIsNullrecord componentproofId- the value for theproofIdrecord componentproofIdIsNull- the value for theproofIdIsNullrecord componentsize- the value for thesizerecord componenttype- the value for thetyperecord 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 thecategoryTagrecord component.- Returns:
- the value of the
categoryTagrecord component
-
createdGte
Returns the value of thecreatedGterecord component.- Returns:
- the value of the
createdGterecord component
-
createdLte
Returns the value of thecreatedLterecord component.- Returns:
- the value of the
createdLterecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
dateGt
Returns the value of thedateGtrecord component.- Returns:
- the value of the
dateGtrecord component
-
dateGte
Returns the value of thedateGterecord component.- Returns:
- the value of the
dateGterecord component
-
dateLt
Returns the value of thedateLtrecord component.- Returns:
- the value of the
dateLtrecord component
-
dateLte
Returns the value of thedateLterecord component.- Returns:
- the value of the
dateLterecord component
-
dateMonth
Returns the value of thedateMonthrecord component.- Returns:
- the value of the
dateMonthrecord component
-
dateYear
Returns the value of thedateYearrecord component.- Returns:
- the value of the
dateYearrecord component
-
discountType
Returns the value of thediscountTyperecord component.- Returns:
- the value of the
discountTyperecord component
-
labelsTagsContains
Returns the value of thelabelsTagsContainsrecord component.- Returns:
- the value of the
labelsTagsContainsrecord component
-
locationId
Returns the value of thelocationIdrecord component.- Returns:
- the value of the
locationIdrecord component
-
locationIdIsNull
Returns the value of thelocationIdIsNullrecord component.- Returns:
- the value of the
locationIdIsNullrecord component
-
locationOsmId
Returns the value of thelocationOsmIdrecord component.- Returns:
- the value of the
locationOsmIdrecord component
-
locationOsmType
Returns the value of thelocationOsmTyperecord component.- Returns:
- the value of the
locationOsmTyperecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-
originsTagsContains
Returns the value of theoriginsTagsContainsrecord component.- Returns:
- the value of the
originsTagsContainsrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
price
Returns the value of thepricerecord component.- Returns:
- the value of the
pricerecord component
-
priceGt
Returns the value of thepriceGtrecord component.- Returns:
- the value of the
priceGtrecord component
-
priceGte
Returns the value of thepriceGterecord component.- Returns:
- the value of the
priceGterecord component
-
priceLt
Returns the value of thepriceLtrecord component.- Returns:
- the value of the
priceLtrecord component
-
priceLte
Returns the value of thepriceLterecord component.- Returns:
- the value of the
priceLterecord component
-
priceIsDiscounted
Returns the value of thepriceIsDiscountedrecord component.- Returns:
- the value of the
priceIsDiscountedrecord component
-
productCategoriesTagsContains
Returns the value of theproductCategoriesTagsContainsrecord component.- Returns:
- the value of the
productCategoriesTagsContainsrecord component
-
productCode
Returns the value of theproductCoderecord component.- Returns:
- the value of the
productCoderecord component
-
productId
Returns the value of theproductIdrecord component.- Returns:
- the value of the
productIdrecord component
-
productIdIsNull
Returns the value of theproductIdIsNullrecord component.- Returns:
- the value of the
productIdIsNullrecord component
-
proofId
Returns the value of theproofIdrecord component.- Returns:
- the value of the
proofIdrecord component
-
proofIdIsNull
Returns the value of theproofIdIsNullrecord component.- Returns:
- the value of the
proofIdIsNullrecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-