@Override void removeAt(int index) { incrementModCount(); super.removeAt(index); postRemoveHook(); }
@Override void removeAt(int index) { incrementModCount(); super.removeAt(index); postRemoveHook(); }
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
@Override public Integer computeIfPresent(K key, BiFunction<? super K, ? super Integer, ? extends Integer> remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; Integer newValue = remappingFunction.apply(key, vals[index]); if (newValue != null) { vals[index] = newValue; return newValue; } else { incrementModCount(); set[index] = REMOVED; postRemoveHook(); return null; } } else { // key is absent return null; } }
public Integer computeIfPresent(K key, BiFunction<? super K, ? super Integer, ? extends Integer> remappingFunction) { if (remappingFunction == null) throw new java.lang.NullPointerException(); int index = index(key); if (index >= 0) { // key is present int[] vals = values; Integer newValue = remappingFunction.apply(key, vals[index]); if (newValue != null) { vals[index] = newValue; return newValue; } else { incrementModCount(); set[index] = REMOVED; postRemoveHook(); return null; } } else { // key is absent return null; } }
incrementModCount(); keys[firstRemoved] = null; vals[firstRemoved] = newValue; incrementModCount(); keys[index] = null; vals[index] = newValue;
incrementModCount(); keys[firstRemoved] = null; vals[firstRemoved] = value; incrementModCount(); keys[index] = null; vals[index] = value;
incrementModCount(); keys[firstRemoved] = null; vals[firstRemoved] = value; incrementModCount(); keys[index] = null; vals[index] = value;
incrementModCount(); mc++; keys[i] = REMOVED; incrementModCount(); mc++; keys[i] = REMOVED;
incrementModCount(); mc++; keys[i] = REMOVED; incrementModCount(); mc++; keys[i] = REMOVED;
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();
incrementModCount(); ((Object[]) keys)[index] = REMOVED; postRemoveHook();