private V doPut(V value, int index) { V previous = null; boolean isNewMapping = true; if (index < 0) { index = -index - 1; previous = _values[index]; isNewMapping = false; } _values[index] = value; if (isNewMapping) { postInsertHook(consumeFreeSlot); } return previous; }
private V doPut(V value, int index) { V previous = null; boolean isNewMapping = true; if (index < 0) { index = -index - 1; previous = _values[index]; isNewMapping = false; } _values[index] = value; if (isNewMapping) { postInsertHook(consumeFreeSlot); } return previous; }
private V doPut(V value, int index) { V previous = null; boolean isNewMapping = true; if (index < 0) { index = -index - 1; previous = _values[index]; isNewMapping = false; } _values[index] = value; if (isNewMapping) { postInsertHook(consumeFreeSlot); } return previous; }
private V doPut(V value, int index) { V previous = null; boolean isNewMapping = true; if (index < 0) { index = -index - 1; previous = _values[index]; isNewMapping = false; } _values[index] = value; if (isNewMapping) { postInsertHook(consumeFreeSlot); } return previous; }
private V doPut( K key, V value, int index ) { V previous = null; Object oldKey; boolean isNewMapping = true; if ( index < 0 ) { index = -index - 1; previous = _values[index]; isNewMapping = false; } oldKey = _set[index]; _set[index] = key; _values[index] = value; if ( isNewMapping ) { postInsertHook( oldKey == FREE ); } return previous; }