public abstract class Preference extends Object
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.
Compatibility: Public
Constructor and Description |
---|
Preference() |
Modifier and Type | Method and Description |
---|---|
Preference |
copy()
Deprecated.
|
boolean |
equals(Object obj)
Compare two preferences for equality.
|
abstract long |
getItemId()
Get the ID of the item the preference is for.
|
abstract long |
getUserId()
Get the ID of the user whose preference this is.
|
abstract double |
getValue()
Get the preference value.
|
int |
hashCode() |
String |
toString() |
public abstract long getUserId()
public abstract long getItemId()
public abstract double getValue()
public final boolean equals(Object obj)
@Deprecated public Preference copy()
PreferenceBuilder.copy(Preference)
.Copyright © 2013 GroupLens Research. All Rights Reserved.