@Test public void testRehash() { FastIDSet set = buildTestFastSet(); set.remove(1); set.rehash(); assertFalse(set.contains(1)); }
public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (loadFactor * numEntries))); }
FastIDSet implements Serializable, Cloneable, Iterable<Long> { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (loadFactor * numEntries))); } }
FastIDSet implements Serializable, Cloneable, Iterable<Long> { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (loadFactor * numEntries))); } FastIDSet();  FastIDSet(long[] initialKeys);  FastIDSet(int size);  FastIDSet(int size, float loadFactor); }
FastIDSet implements Serializable, Cloneable, Iterable<Long> { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (loadFactor * numEntries))); } FastIDSet();  FastIDSet(long[] initialKeys);  FastIDSet(int size);  FastIDSet(int size, float loadFactor); int size(); boolean isEmpty(); boolean contains(long key); boolean add(long key); @Override LongPrimitiveIterator iterator(); long[] toArray(); boolean remove(long key); boolean addAll(long[] c); boolean addAll(FastIDSet c); boolean removeAll(long[] c); boolean removeAll(FastIDSet c); boolean retainAll(FastIDSet c); void clear(); void rehash(); int intersectionSize(FastIDSet other); @Override FastIDSet clone(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); }
FastIDSet implements Serializable, Cloneable, Iterable<Long> { public void rehash() { rehash(RandomUtils.nextTwinPrime((int) (loadFactor * numEntries))); } FastIDSet();  FastIDSet(long[] initialKeys);  FastIDSet(int size);  FastIDSet(int size, float loadFactor); int size(); boolean isEmpty(); boolean contains(long key); boolean add(long key); @Override LongPrimitiveIterator iterator(); long[] toArray(); boolean remove(long key); boolean addAll(long[] c); boolean addAll(FastIDSet c); boolean removeAll(long[] c); boolean removeAll(FastIDSet c); boolean retainAll(FastIDSet c); void clear(); void rehash(); int intersectionSize(FastIDSet other); @Override FastIDSet clone(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString();  }