@Test public void testClear() { DataStorage.setDefaultBin(BinLabel.BIN_TRAIN); DataStorage.add(fv); DataStorage.clear(BinLabel.BIN_TRAIN); assertEquals("DataStorage.clear failed to add in BIN_TRAIN", DataStorage.binSize(BinLabel.BIN_TRAIN), 0); }
public static synchronized void clear(BinLabel binLabel) throws NoSuchElementException { if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); data.get(binLabel).clear(); }
DataStorage { public static synchronized void clear(BinLabel binLabel) throws NoSuchElementException { if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); data.get(binLabel).clear(); } }
DataStorage { public static synchronized void clear(BinLabel binLabel) throws NoSuchElementException { if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); data.get(binLabel).clear(); }  }
DataStorage { public static synchronized void clear(BinLabel binLabel) throws NoSuchElementException { if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); data.get(binLabel).clear(); }  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 synchronized void clear(BinLabel binLabel) throws NoSuchElementException { if (!data.containsKey(binLabel)) throw new NoSuchElementException(binLabel.toString() + " bin DNE"); data.get(binLabel).clear(); }  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);  }