org.activemath.statistics
Class ItemFeedback

java.lang.Object
  extended by org.activemath.statistics.ItemFeedback

public class ItemFeedback
extends Object

ItemFeedback is a data class holding information about the number of users liking resp. disliking a given item. Only UserFeedbackManager is supposed to write to ItemFeedbacks, hence all methods changing state are package-protected. The public methods are restricted to getLikes() and getDislikes(), returning the number of user havin liked resp. disliked the item this ItemFeedback is about.

See Also:
UserFeedback, UserFeedbackManager

Method Summary
 int getDislikes()
          Returns the number of users disliking the item this ItemFeedback is about.
 int getLikes()
          Returns the number of users liking the item this ItemFeedback is about.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getLikes

public int getLikes()
Returns the number of users liking the item this ItemFeedback is about.

Returns:
the number of users liking the item this ItemFeedback is about.

getDislikes

public int getDislikes()
Returns the number of users disliking the item this ItemFeedback is about.

Returns:
the number of users disliking the item this ItemFeedback is about.

toString

public String toString()
Overrides:
toString in class Object