private void rehash(int newN) {
    mask = newN - 1;
    n = newN;
    maxFill = HashCommon.maxFill(n, LOAD_FACTOR);

    //noinspection unchecked
    Entry<K, V>[] entries = new Entry[newN];
    for (Entry<K, V> e = back; e != null; e = e.previous) {
      int hash = e.keyHash & mask;
      e.hashNext = entries[hash];
      entries[hash] = e;
    }

    this.entries = entries;
  }
private void rehash(int newN)