@Test public void hash_usesHash() { boolean[] callecHash = new boolean[2]; test = new DoubleHashTable<>(5, buildHashFactory(callecHash)); hash(keys[0], 0); Assert.assertTrue(callecHash[0]); }
private int hash(K key, int i) { return -2; }
DoubleHashTable { private int hash(K key, int i) { return -2; } }
DoubleHashTable { private int hash(K key, int i) { return -2; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); }
DoubleHashTable { private int hash(K key, int i) { return -2; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); boolean insert(K k, V v); Optional<V> find(K k); int collisions(); int maxRehashes(); }
DoubleHashTable { private int hash(K key, int i) { return -2; } DoubleHashTable(int primeSize, HashableFactory<K> hashableFactory); boolean insert(K k, V v); Optional<V> find(K k); int collisions(); int maxRehashes();  }