private void updateAllRecommendableItems() { foreach (var entry in averageDiffs.entrySet()) { allRecommendableItemIDs.add(entry.Key); var keys = entry.Value.Keys; foreach (var key in keys) { allRecommendableItemIDs.add(key); } } allRecommendableItemIDs.rehash(); }
private void updateAllRecommendableItems() { FastIDSet ids = new FastIDSet(dataModel.getNumItems()); foreach (var entry in averageDiffs.entrySet()) { ids.add(entry.Key); var it = entry.Value.Keys; foreach (var item in it) { ids.add(item); } } allRecommendableItemIDs.clear(); allRecommendableItemIDs.addAll(ids); allRecommendableItemIDs.rehash(); }