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 FeedbackScoregenerate(FeedbackBean fb) Generates a feedback score from a FeedbackBean.doubleReturns the average feedback score.intgetID()Returns the database ID of the parent object.intgetSize()Returns the number of feedback entries.getType()Returns the type of the parent object.inthashCode()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
-