U - type of the usersI - type of the itemspublic interface PreferenceData<U,I> extends UserIndex<U>, ItemIndex<I>
| Modifier and Type | Method and Description |
|---|---|
Stream<? extends IdPref<U>> |
getItemPreferences(I i)
Returns a stream of the preferences of the item
|
Stream<I> |
getItemsWithPreferences()
Returns a stream of the items with preferences
|
Stream<? extends IdPref<I>> |
getUserPreferences(U u)
Returns a stream of the preferences of the user
|
Stream<U> |
getUsersWithPreferences()
Returns a stream of the users with preferences
|
int |
numItems(U u)
Returns the number of items with preference for user u
|
int |
numItemsWithPreferences()
Returns the number of items with preferences.
|
int |
numPreferences()
Returns the total number of preferences
|
int |
numUsers(I i)
Returns the number of users with preference for item i
|
int |
numUsersWithPreferences()
Returns the number of users with preferences.
|
containsUser, getAllUsers, numUserscontainsItem, getAllItems, numItemsint numUsersWithPreferences()
int numItemsWithPreferences()
int numUsers(I i)
i - itemint numItems(U u)
u - userint numPreferences()
Stream<U> getUsersWithPreferences()
Stream<I> getItemsWithPreferences()
Stream<? extends IdPref<I>> getUserPreferences(U u)
u - userCopyright © 2016. All rights reserved.