@Test public void testRehash() { LongObjectMap<String> map = buildTestFastMap(); map.remove(500000L); map.rehash(); assertNull(map.get(500000L)); assertEquals("bang", map.get(47L)); }
public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); }
LongObjectMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } }
LongObjectMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongObjectMap();  LongObjectMap(int size); }
LongObjectMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongObjectMap();  LongObjectMap(int size); V get(long key); int size(); boolean isEmpty(); boolean containsKey(long key); boolean containsValue(Object value); V put(long key, V value); V remove(long key); void clear(); LongPrimitiveIterator keySetIterator(); Set<MapEntry<V>> entrySet(); Collection<V> values(); void rehash(); @Override LongObjectMap<V> clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); }
LongObjectMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongObjectMap();  LongObjectMap(int size); V get(long key); int size(); boolean isEmpty(); boolean containsKey(long key); boolean containsValue(Object value); V put(long key, V value); V remove(long key); void clear(); LongPrimitiveIterator keySetIterator(); Set<MapEntry<V>> entrySet(); Collection<V> values(); void rehash(); @Override LongObjectMap<V> clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other);  }