/** * {@inheritDoc} * * This implementation delegates to {@link #scoreRelatedItemsWithDetails(Collection, Collection)}. */ @Nonnull @Override public Map<Long, Double> scoreRelatedItems(@Nonnull Collection<Long> basket, @Nonnull Collection<Long> items) { return scoreRelatedItemsWithDetails(basket, items).scoreMap(); }
/** * {@inheritDoc} * * This implementation delegates to {@link #scoreRelatedItemsWithDetails(Collection, Collection)}. */ @Override public Result scoreRelatedItem(@Nonnull Collection<Long> basket, long item) { return scoreRelatedItemsWithDetails(basket, LongSets.singleton(item)).get(item); } }
/** * {@inheritDoc} * * This implementation delegates to {@link #scoreRelatedItemsWithDetails(Collection, Collection)}. */ @Nonnull @Override public Map<Long, Double> scoreRelatedItems(@Nonnull Collection<Long> basket, @Nonnull Collection<Long> items) { return scoreRelatedItemsWithDetails(basket, items).scoreMap(); }
/** * {@inheritDoc} * * This implementation delegates to {@link #scoreRelatedItemsWithDetails(Collection, Collection)}. */ @Override public Result scoreRelatedItem(@Nonnull Collection<Long> basket, long item) { return scoreRelatedItemsWithDetails(basket, LongSets.singleton(item)).get(item); } }