Record Class OpenFoodFactsPageResponse
java.lang.Object
java.lang.Record
com.alpermulayim.openfoodfacts_spring_boot_starter.responses.OpenFoodFactsPageResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.page()Returns the value of thepagerecord component.Returns the value of thepageCountrecord component.pageSize()Returns the value of thepageSizerecord component.products()Returns the value of theproductsrecord component.skip()Returns the value of theskiprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenFoodFactsPageResponse
public OpenFoodFactsPageResponse(Long page, Long pageSize, Long pageCount, Long count, Long skip, List<Product> products) Creates an instance of aOpenFoodFactsPageResponserecord class.- Parameters:
page- the value for thepagerecord componentpageSize- the value for thepageSizerecord componentpageCount- the value for thepageCountrecord componentcount- the value for thecountrecord componentskip- the value for theskiprecord componentproducts- the value for theproductsrecord 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). -
page
Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
pageSize
Returns the value of thepageSizerecord component.- Returns:
- the value of the
pageSizerecord component
-
pageCount
Returns the value of thepageCountrecord component.- Returns:
- the value of the
pageCountrecord component
-
count
Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
skip
Returns the value of theskiprecord component.- Returns:
- the value of the
skiprecord component
-
products
Returns the value of theproductsrecord component.- Returns:
- the value of the
productsrecord component
-