Class ReviewsSummary
java.lang.Object
com.broadleafcommerce.catalog.domain.product.ReviewsSummary
- All Implemented Interfaces:
Serializable
A structure containing a summary of a product's or variant's reviews.
- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
int
The number of reviews made.The overall rating for the reviewed product.The unit of measure for the rating, e.g., stars, thumbs, etc.int
hashCode()
void
setNumberOfReviews
(int numberOfReviews) The number of reviews made.void
setRating
(BigDecimal rating) The overall rating for the reviewed product.void
setRatingUnits
(String ratingUnits) The unit of measure for the rating, e.g., stars, thumbs, etc.toString()
-
Constructor Details
-
ReviewsSummary
public ReviewsSummary() -
ReviewsSummary
-
-
Method Details
-
getNumberOfReviews
public int getNumberOfReviews()The number of reviews made.- Returns:
- The number of reviews made.
-
getRating
The overall rating for the reviewed product.- Returns:
- The overall rating for the reviewed product.
-
getRatingUnits
The unit of measure for the rating, e.g., stars, thumbs, etc.- Returns:
- The unit of measure for the rating, e.g., stars, thumbs, etc.
-
setNumberOfReviews
public void setNumberOfReviews(int numberOfReviews) The number of reviews made.- Parameters:
numberOfReviews
- The number of reviews made.
-
setRating
The overall rating for the reviewed product.- Parameters:
rating
- The overall rating for the reviewed product.
-
setRatingUnits
The unit of measure for the rating, e.g., stars, thumbs, etc.- Parameters:
ratingUnits
- The unit of measure for the rating, e.g., stars, thumbs, etc.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-