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