public class MutableRecommendedItem extends Object implements RecommendedItem
RecommendedItem| Constructor and Description |
|---|
MutableRecommendedItem() |
MutableRecommendedItem(long itemID,
float value) |
| Modifier and Type | Method and Description |
|---|---|
void |
capToMaxValue(float maxValue) |
boolean |
equals(Object o) |
long |
getItemID() |
float |
getValue()
A value expressing the strength of the preference for the recommended item.
|
int |
hashCode() |
void |
set(long itemID,
float value) |
void |
setItemID(long itemID) |
String |
toString() |
public MutableRecommendedItem()
public MutableRecommendedItem(long itemID,
float value)
public 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 RecommendedItempublic void setItemID(long itemID)
public void set(long itemID,
float value)
public void capToMaxValue(float maxValue)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.