ch.hsr.bieridee.domain
Class Rating
java.lang.Object
ch.hsr.bieridee.domain.Action
ch.hsr.bieridee.domain.Rating
- All Implemented Interfaces:
- IDomain
public class Rating
- extends Action
- implements IDomain
Constructor Summary |
Rating(java.util.Date date,
Beer beer,
User user,
int value)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Rating
public Rating(java.util.Date date,
Beer beer,
User user,
int value)
- Parameters:
date
- Date the Activity happened.beer
- The Beer
associated with the activity.user
- The User
created that created the activityvalue
- Rated value of the Beer.
getValue
public int getValue()
setValue
public void setValue(int value)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object