void addEntry(int hash, Object key, int value, int bucketIndex) {
    Entry e = table[bucketIndex];
    table[bucketIndex] = new Entry(hash, key, value, e);
    if (size++ >= threshold) {
      resize(2 * table.length);
    }
  }
Adds a new entry with the specified key, value and hash code to the specified bucket. It is the
responsibility of this method to resize the table if appropriate.

Subclass overrides this to alter the behavior of put method.
geode-core/src/main/java/org/apache/geode/cache/query/internal/ObjectIntHashMap.java