public final class GenericRecommendedItem extends Object implements RecommendedItem, Serializable
A simple implementation of RecommendedItem
.
Constructor and Description |
---|
GenericRecommendedItem(long itemID,
float value) |
public GenericRecommendedItem(long itemID, float value)
IllegalArgumentException
- if item is null or value is NaNpublic long getItemID()
getItemID
in interface RecommendedItem
public float getValue()
RecommendedItem
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.
getValue
in interface RecommendedItem
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.