public final class PreferenceBuilder extends Object implements org.apache.commons.lang3.builder.Builder<org.grouplens.lenskit.data.pref.SimplePreference>
Modifier and Type | Field and Description |
---|---|
protected long |
item |
protected long |
user |
protected double |
value |
Constructor and Description |
---|
PreferenceBuilder() |
Modifier and Type | Method and Description |
---|---|
org.grouplens.lenskit.data.pref.SimplePreference |
build() |
static PreferenceBuilder |
copy(Preference pref) |
PreferenceBuilder |
setItemId(long i) |
PreferenceBuilder |
setUserId(long u) |
PreferenceBuilder |
setValue(double v) |
public static PreferenceBuilder copy(Preference pref)
public PreferenceBuilder setUserId(long u)
public PreferenceBuilder setItemId(long i)
public PreferenceBuilder setValue(double v)
public org.grouplens.lenskit.data.pref.SimplePreference build()
build
in interface org.apache.commons.lang3.builder.Builder<org.grouplens.lenskit.data.pref.SimplePreference>