@Test public void testRehash() { LongFloatMap map = buildTestFastMap(); map.remove(500000L); map.rehash(); assertNaN(map.get(500000L)); assertEquals(3.0f, map.get(47L)); }
public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); }
LongFloatMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } }
LongFloatMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongFloatMap();  LongFloatMap(int initialCapacity); }
LongFloatMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongFloatMap();  LongFloatMap(int initialCapacity); float get(long key); void increment(long key, float delta); int size(); boolean isEmpty(); boolean containsKey(long key); void put(long key, float value); void remove(long key); void clear(); LongPrimitiveIterator keySetIterator(); Set<MapEntry> entrySet(); void rehash(); @Override LongFloatMap clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); }
LongFloatMap implements Serializable, Cloneable { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (LOAD_FACTOR * numEntries) + 1)); } LongFloatMap();  LongFloatMap(int initialCapacity); float get(long key); void increment(long key, float delta); int size(); boolean isEmpty(); boolean containsKey(long key); void put(long key, float value); void remove(long key); void clear(); LongPrimitiveIterator keySetIterator(); Set<MapEntry> entrySet(); void rehash(); @Override LongFloatMap clone(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other);  }