Like GenericItemPreferenceArray but stores preferences for one user (all user IDs the same) rather
than one item.
This implementation maintains two parallel arrays, of item IDs and values. The idea is to save allocating IPreference objects themselves. This saves the overhead of IPreference objects but also duplicating the user ID value.
Inheritance Hierarchy
NReco.CF.Taste.Impl.Model GenericUserPreferenceArray
Namespace: NReco.CF.Taste.Impl.Model
Assembly: NReco.Recommender (in NReco.Recommender.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The GenericUserPreferenceArray type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GenericUserPreferenceArray(Int32) | Initializes a new instance of the GenericUserPreferenceArray class | |
GenericUserPreferenceArray(IList IPreference ) | Initializes a new instance of the GenericUserPreferenceArray class |
Methods
Name | Description | |
---|---|---|
Clone | ||
Equals | (Overrides Object Equals(Object).) | |
Get | ||
GetEnumerator | ||
GetHashCode | (Overrides Object GetHashCode .) | |
GetIDs | ||
GetItemID | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserID | ||
GetValue | ||
HasPrefWithItemID | ||
HasPrefWithUserID | ||
Length | ||
Set | ||
SetItemID | ||
SetUserID | ||
SetValue | ||
SortByItem | ||
SortByUser | ||
SortByValue | ||
SortByValueReversed | ||
ToString | (Overrides Object ToString .) |
See Also