com.planetj.taste.model
Interface Item
- All Superinterfaces:
- java.lang.Comparable<Item>
- All Known Implementing Classes:
- GenericItem
public interface Item
- extends java.lang.Comparable<Item>
Implementations of this interface represent items that Users have
preferences for, and which can be recommended to them. Items must have
a unique ID of some kind, and must be Comparable.
- Author:
- Sean Owen
| Methods inherited from interface java.lang.Comparable |
compareTo |
getID
@NotNull
java.lang.Object getID()
- Returns:
- unique ID for this item
isRecommendable
boolean isRecommendable()
- Returns:
- true if and only if this
Item can be recommended to a user;
for example, this could be false for an Item that is no longer
available but which remains valuable for recommendation