@Test public void testGet() { final long seed = System.currentTimeMillis(); System.out.println("Test seed: " + seed); Random r = new Random(seed); final int batchSize = r.nextInt(); Assert.assertEquals(new Integer(batchSize), new SingleBatchSizeHashMap(batchSize).get(null)); }
@Override public Integer get(Object key) { return this.batchSize; }
SingleBatchSizeHashMap extends HashMap<String, Integer> { @Override public Integer get(Object key) { return this.batchSize; } }
SingleBatchSizeHashMap extends HashMap<String, Integer> { @Override public Integer get(Object key) { return this.batchSize; } SingleBatchSizeHashMap(int batchSize); }
SingleBatchSizeHashMap extends HashMap<String, Integer> { @Override public Integer get(Object key) { return this.batchSize; } SingleBatchSizeHashMap(int batchSize); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Integer get(Object key); @Override Integer put(String key, Integer value); @Override Integer remove(Object key); @Override void putAll(Map<? extends String, ? extends Integer> m); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Integer> values(); @Override Set<java.util.Map.Entry<String, Integer>> entrySet(); }
SingleBatchSizeHashMap extends HashMap<String, Integer> { @Override public Integer get(Object key) { return this.batchSize; } SingleBatchSizeHashMap(int batchSize); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Integer get(Object key); @Override Integer put(String key, Integer value); @Override Integer remove(Object key); @Override void putAll(Map<? extends String, ? extends Integer> m); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Integer> values(); @Override Set<java.util.Map.Entry<String, Integer>> entrySet();  }