/**
  * Construct the hash table.
  *
  * @param hf the hash family
  * @param size the approximate initial size.
  */
 public CuckooHashTable(HashFamily<? super AnyType> hf, int size) {
   allocateArray(nextPrime(size));
   doClear();
   hashFunctions = hf;
   numHashFunctions = hf.getNumberOfFunctions();
 }
 /** Make the hash table logically empty. */
 public void makeEmpty() {
   doClear();
 }