@Test public void testGetAll() { DataStorage.add(BinLabel.BIN_TRAIN, fv); DataStorage.add(BinLabel.BIN_TRAIN, fv); List<FeatureVector> allFV = DataStorage.getAll(BinLabel.BIN_TRAIN); assertEquals("DataStorage.getAll failed", DataStorage.binSize(BinLabel.BIN_TRAIN), allFV.size()); DataStorage.clear(BinLabel.BIN_TRAIN); }
public static List<FeatureVector> getAll(BinLabel binLabel) throws NoSuchElementException{ if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); return data.get(binLabel); }
DataStorage { public static List<FeatureVector> getAll(BinLabel binLabel) throws NoSuchElementException{ if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); return data.get(binLabel); } }
DataStorage { public static List<FeatureVector> getAll(BinLabel binLabel) throws NoSuchElementException{ if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); return data.get(binLabel); }  }
DataStorage { public static List<FeatureVector> getAll(BinLabel binLabel) throws NoSuchElementException{ if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); return data.get(binLabel); }  static synchronized FeatureVector get(BinLabel binLabel, int index); static List<FeatureVector> getAll(BinLabel binLabel); static synchronized void add(BinLabel binLabel, FeatureVector fv); static synchronized void clear(BinLabel binLabel); static int binSize(BinLabel binLabel); static synchronized void add(FeatureVector fv); static synchronized FeatureVector getMostRecent(); static synchronized void setDefaultBin(BinLabel binLabel); static void setMaxRecent(int maxRecents); }
DataStorage { public static List<FeatureVector> getAll(BinLabel binLabel) throws NoSuchElementException{ if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); return data.get(binLabel); }  static synchronized FeatureVector get(BinLabel binLabel, int index); static List<FeatureVector> getAll(BinLabel binLabel); static synchronized void add(BinLabel binLabel, FeatureVector fv); static synchronized void clear(BinLabel binLabel); static int binSize(BinLabel binLabel); static synchronized void add(FeatureVector fv); static synchronized FeatureVector getMostRecent(); static synchronized void setDefaultBin(BinLabel binLabel); static void setMaxRecent(int maxRecents);  }