@Test public void testPreferencesForItem() throws Exception { PreferenceArray prefs = model.getPreferencesForItem(456); assertNotNull(prefs); Preference pref1 = prefs.get(0); assertEquals(123, pref1.getUserID()); assertEquals(456, pref1.getItemID()); Preference pref2 = prefs.get(1); assertEquals(456, pref2.getUserID()); assertEquals(456, pref2.getItemID()); assertEquals(2, prefs.length()); }
@Override public PreferenceArray getPreferencesForItem(long itemID) throws TasteException { return delegate.getPreferencesForItem(itemID); }
FileDataModel extends AbstractDataModel { @Override public PreferenceArray getPreferencesForItem(long itemID) throws TasteException { return delegate.getPreferencesForItem(itemID); } }
FileDataModel extends AbstractDataModel { @Override public PreferenceArray getPreferencesForItem(long itemID) throws TasteException { return delegate.getPreferencesForItem(itemID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); }
FileDataModel extends AbstractDataModel { @Override public PreferenceArray getPreferencesForItem(long itemID) throws TasteException { return delegate.getPreferencesForItem(itemID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); File getDataFile(); static char determineDelimiter(String line); @Override LongPrimitiveIterator getUserIDs(); @Override PreferenceArray getPreferencesFromUser(long userID); @Override FastIDSet getItemIDsFromUser(long userID); @Override LongPrimitiveIterator getItemIDs(); @Override PreferenceArray getPreferencesForItem(long itemID); @Override Float getPreferenceValue(long userID, long itemID); @Override Long getPreferenceTime(long userID, long itemID); @Override int getNumItems(); @Override int getNumUsers(); @Override int getNumUsersWithPreferenceFor(long itemID); @Override int getNumUsersWithPreferenceFor(long itemID1, long itemID2); @Override void setPreference(long userID, long itemID, float value); @Override void removePreference(long userID, long itemID); @Override void refresh(Collection<Refreshable> alreadyRefreshed); @Override boolean hasPreferenceValues(); @Override float getMaxPreference(); @Override float getMinPreference(); @Override String toString(); }
FileDataModel extends AbstractDataModel { @Override public PreferenceArray getPreferencesForItem(long itemID) throws TasteException { return delegate.getPreferencesForItem(itemID); } FileDataModel(File dataFile);  FileDataModel(File dataFile, String delimiterRegex);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS);  FileDataModel(File dataFile, boolean transpose, long minReloadIntervalMS, String delimiterRegex); File getDataFile(); static char determineDelimiter(String line); @Override LongPrimitiveIterator getUserIDs(); @Override PreferenceArray getPreferencesFromUser(long userID); @Override FastIDSet getItemIDsFromUser(long userID); @Override LongPrimitiveIterator getItemIDs(); @Override PreferenceArray getPreferencesForItem(long itemID); @Override Float getPreferenceValue(long userID, long itemID); @Override Long getPreferenceTime(long userID, long itemID); @Override int getNumItems(); @Override int getNumUsers(); @Override int getNumUsersWithPreferenceFor(long itemID); @Override int getNumUsersWithPreferenceFor(long itemID1, long itemID2); @Override void setPreference(long userID, long itemID, float value); @Override void removePreference(long userID, long itemID); @Override void refresh(Collection<Refreshable> alreadyRefreshed); @Override boolean hasPreferenceValues(); @Override float getMaxPreference(); @Override float getMinPreference(); @Override String toString(); static final long DEFAULT_MIN_RELOAD_INTERVAL_MS; }