public final class IndexedPreferenceBuilder extends Object implements org.apache.commons.lang3.builder.Builder<IndexedPreference>
Constructor and Description |
---|
IndexedPreferenceBuilder() |
Modifier and Type | Method and Description |
---|---|
IndexedPreference |
build()
Build the indexed preference.
|
static IndexedPreferenceBuilder |
copy(IndexedPreference pref)
Create a new preference builder initialized as a copy of a preference.
|
IndexedPreferenceBuilder |
setIndex(int i)
Set the preference's index.
|
IndexedPreferenceBuilder |
setItemId(long i)
Set the preference's item ID.
|
IndexedPreferenceBuilder |
setItemIndex(int iidx)
Set the preference's item index.
|
IndexedPreferenceBuilder |
setUserId(long u)
Set the preference's user ID.
|
IndexedPreferenceBuilder |
setUserIndex(int uidx)
Set the preference's user index.
|
IndexedPreferenceBuilder |
setValue(double v)
Set the preference's value.
|
public static IndexedPreferenceBuilder copy(IndexedPreference pref)
pref
- The preference to copy.public IndexedPreferenceBuilder setIndex(int i)
i
- The index.public IndexedPreferenceBuilder setUserId(long u)
u
- The user ID.public IndexedPreferenceBuilder setUserIndex(int uidx)
uidx
- The user index.public IndexedPreferenceBuilder setItemId(long i)
i
- The item ID.public IndexedPreferenceBuilder setItemIndex(int iidx)
iidx
- The item index.public IndexedPreferenceBuilder setValue(double v)
v
- The preference value.public IndexedPreference build()
build
in interface org.apache.commons.lang3.builder.Builder<IndexedPreference>