public class RatingProperties extends Object implements Serializable
| Constructor and Description |
|---|
RatingProperties()
Default constructor
|
RatingProperties(RatingProperties template)
Copy/clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
String |
getReview()
Return the review comments - null means no review is available.
|
StarRating |
getStarRating()
Return the stars for the rating.
|
String |
getUser()
Return the user id of the person who created the rating.
|
int |
hashCode()
Return hash code for this object
|
boolean |
isPublic()
Return if this rating is private ot the creating user.
|
void |
setPublic(boolean aPublic)
Set up whether the rating is private to the creating user or not.
|
void |
setReview(String review)
Set up the review comments - null means no review is available.
|
void |
setStarRating(StarRating starRating)
Set up the stars for the rating.
|
void |
setUser(String user)
Set up the user id of the person who created the rating.
|
String |
toString()
Standard toString method.
|
public RatingProperties()
public RatingProperties(RatingProperties template)
template - element to copypublic String getUser()
public void setUser(String user)
user - stringpublic StarRating getStarRating()
public void setStarRating(StarRating starRating)
starRating - StarRating enumpublic String getReview()
public void setReview(String review)
review - String review commentspublic boolean isPublic()
public void setPublic(boolean aPublic)
aPublic - booleanpublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.