public interface Preference
Instances of this class are immutable. All exceptions to this rule must be clearly documented, and only arise in limited contexts such as fast iteration.
Preferences are equal iff they have the same user ID, item ID, and value. The hash code
of a preference is computed by passing those three values, in order, to
HashCodeBuilder
with default parameters.
Modifier and Type | Method and Description |
---|---|
long |
getItemId()
Get the ID of the item the preference is for.
|
long |
getUserId()
Get the ID of the user whose preference this is.
|
double |
getValue()
Get the preference value.
|