in core/src/main/java/gnu/trove/TObjectIntHashMap.java [135:152]
public int put(K key, int value) {
int previous = 0;
int index = insertionIndex(key);
boolean isNewMapping = true;
if (index < 0) {
index = -index - 1;
previous = _values[index];
isNewMapping = false;
}
K oldKey = (K)_set[index];
_set[index] = key;
_values[index] = value;
if (isNewMapping) {
postInsertHook(oldKey == null);
}
return previous;
}