U - type of the usersI - type of the itemspublic abstract class AbstractRecommender<U,I> extends Object implements Recommender<U,I>
| Constructor and Description |
|---|
AbstractRecommender() |
| Modifier and Type | Method and Description |
|---|---|
Recommendation<U,I> |
getRecommendation(U u)
Free recommendation.
|
Recommendation<U,I> |
getRecommendation(U u,
int maxLength)
Free recommendation.
|
abstract Recommendation<U,I> |
getRecommendation(U u,
int maxLength,
Predicate<I> filter)
Filter recommendation.
|
Recommendation<U,I> |
getRecommendation(U u,
Predicate<I> filter)
Filter recommendation.
|
Recommendation<U,I> |
getRecommendation(U u,
Stream<I> candidates)
Candidates ranking.
|
public Recommendation<U,I> getRecommendation(U u)
RecommendergetRecommendation in interface Recommender<U,I>u - user to be issued a recommendationpublic Recommendation<U,I> getRecommendation(U u, int maxLength)
RecommendergetRecommendation in interface Recommender<U,I>u - user to be issued a recommendationmaxLength - maximum length of recommendationpublic Recommendation<U,I> getRecommendation(U u, Predicate<I> filter)
RecommendergetRecommendation in interface Recommender<U,I>u - user to be issued a recommendationfilter - filter to decide which items might be recommendedpublic abstract Recommendation<U,I> getRecommendation(U u, int maxLength, Predicate<I> filter)
RecommendergetRecommendation in interface Recommender<U,I>u - user to be issued a recommendationmaxLength - maximum length of recommendationfilter - filter to decide which items might be recommendedpublic Recommendation<U,I> getRecommendation(U u, Stream<I> candidates)
RecommendergetRecommendation in interface Recommender<U,I>u - user to be issued a recommendationcandidates - candidate items to be included in the recommendationCopyright © 2016. All rights reserved.