Class FeedbackScore
java.lang.Object
org.deltava.beans.FeedbackScore
- All Implemented Interfaces:
Serializable
,Cacheable
-
Method Summary
Modifier and TypeMethodDescriptioncacheKey()
Returns the cache key for this object.static FeedbackScore
generate
(FeedbackBean fb) Generates a feedback score from a FeedbackBean.double
Returns the average feedback score.int
getID()
Returns the database ID of the parent object.int
getSize()
Returns the number of feedback entries.getType()
Returns the type of the parent object.int
hashCode()
toString()
-
Method Details
-
getID
public int getID()Returns the database ID of the parent object.- Returns:
- the database ID
-
getType
-
getSize
public int getSize()Returns the number of feedback entries.- Returns:
- the number of entries
-
getAverage
public double getAverage()Returns the average feedback score.- Returns:
- the average score
-
toString
-
hashCode
-
cacheKey
-
generate
Generates a feedback score from a FeedbackBean.- Parameters:
fb
- a FeedbackBean- Returns:
- a FeedbackScore, or null if fb is empty
-