vooga.social.socialInfo
Class Rating

java.lang.Object
  extended by vooga.social.socialInfo.Rating
All Implemented Interfaces:
IDataConverter

public class Rating
extends java.lang.Object
implements IDataConverter

Class for converting ratings. Implements IDataConverter.

Author:
Heidi Slater

Constructor Summary
Rating()
           
 
Method Summary
 java.lang.Object convertData(java.util.List<java.lang.String> list)
          Iterates through the list to find the average of the ratings in the list and returns this as a double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rating

public Rating()
Method Detail

convertData

public java.lang.Object convertData(java.util.List<java.lang.String> list)
Iterates through the list to find the average of the ratings in the list and returns this as a double.

Specified by:
convertData in interface IDataConverter
Returns:
average rating