@Test public void insert_callsHash() { boolean[] calledHash = new boolean[2]; new DoubleHashTable<>(5, buildHashFactory(calledHash)).insert(keys[0], 0); Assert.assertTrue(calledHash[0]); Assert.assertTrue(calledHash[1]); }
public boolean insert(K k, V v) { return false; }
DoubleHashTable { public boolean insert(K k, V v) { return false; } }
DoubleHashTable { public boolean insert(K k, V v) { return false; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); }
DoubleHashTable { public boolean insert(K k, V v) { return false; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); boolean insert(K k, V v); Optional<V> find(K k); int collisions(); int maxRehashes(); }
DoubleHashTable { public boolean insert(K k, V v) { return false; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); boolean insert(K k, V v); Optional<V> find(K k); int collisions(); int maxRehashes();  }