@Test public void testHashtable() { Assert.assertEquals(2, hashtable.size()); Assert.assertEquals(Integer.valueOf(3), hashtable.get(2)); Assert.assertEquals(Integer.valueOf(2), hashtable.get(1)); hashtable.put(2, 5); Assert.assertEquals(Integer.valueOf(5), hashtable.get(2)); Assert.assertEquals(null, hashtable.get(10)); }
@SuppressWarnings("unchecked") public Hashtable() { buckets = new LinkedList[capacity]; }
Hashtable { @SuppressWarnings("unchecked") public Hashtable() { buckets = new LinkedList[capacity]; } }
Hashtable { @SuppressWarnings("unchecked") public Hashtable() { buckets = new LinkedList[capacity]; } @SuppressWarnings("unchecked")  Hashtable(); }
Hashtable { @SuppressWarnings("unchecked") public Hashtable() { buckets = new LinkedList[capacity]; } @SuppressWarnings("unchecked")  Hashtable(); V put(K key, V value); V get(K key); final int size(); final float loadFactor(); }
Hashtable { @SuppressWarnings("unchecked") public Hashtable() { buckets = new LinkedList[capacity]; } @SuppressWarnings("unchecked")  Hashtable(); V put(K key, V value); V get(K key); final int size(); final float loadFactor(); static final Logger LOGGER; }