public final class GenericRecommendedItem extends Object implements RecommendedItem, Serializable
A simple implementation of RecommendedItem.
| Constructor and Description |
|---|
GenericRecommendedItem(long itemID,
float value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getItemID() |
float |
getValue()
A value expressing the strength of the preference for the recommended item.
|
int |
hashCode() |
String |
toString() |
public GenericRecommendedItem(long itemID,
float value)
IllegalArgumentException - if item is null or value is NaNpublic long getItemID()
getItemID in interface RecommendedItempublic float getValue()
RecommendedItemA 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 RecommendedItemCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.