com.planetj.taste.recommender
Interface RecommendedItem

All Superinterfaces:
java.lang.Comparable<RecommendedItem>
All Known Implementing Classes:
GenericRecommendedItem

public interface RecommendedItem
extends java.lang.Comparable<RecommendedItem>

Implementations encapsulate items that are recommended, and include the Item recommended and a value expressing the strength of the preference.

Author:
Sean Owen

Method Summary
 Item getItem()
           
 double getValue()
          A value expressing the strength of the preference for the recommended Item.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getItem

@NotNull
Item getItem()
Returns:
the recommended Item

getValue

double getValue()

A value expressing the strength of the preference for the recommended Item. The range of the values depends on the implementation. Implementations must use larger values to express stronger preference.

Returns:
strength of the preference