public common.FastIDSet getRecommendableItemIDs(long userID) { try { buildAverageDiffsLock.EnterReadLock(); return((FastIDSet)allRecommendableItemIDs.Clone()); } finally { buildAverageDiffsLock.ExitReadLock(); } }
public common.FastIDSet getRecommendableItemIDs(long userID) { FastIDSet result; try { buildAverageDiffsLock.EnterReadLock(); result = (FastIDSet)allRecommendableItemIDs.Clone(); } finally { buildAverageDiffsLock.ExitReadLock(); } for (int i = 0; i < result.Count(); i++) { var item = result.ElementAt(i); if (dataModel.getPreferenceValue(userID, item) != null) { result.remove(item); i--; } } return(result); }