@Test public void removeShouldReturnMissing() { assertEquals(INITIAL_VALUE, map.remove(1)); }
public int remove(final int key) { @DoNotSub final int mask = entries.length - 1; @DoNotSub int keyIndex = Hashing.evenHash(key, mask); int oldValue = initialValue; while (entries[keyIndex + 1] != initialValue) { if (entries[keyIndex] == key) { oldValue = entries[keyIndex + 1]; entries[keyIndex + 1] = initialValue; size--; compactChain(keyIndex); break; } keyIndex = next(keyIndex, mask); } return oldValue; }
Int2IntCounterMap implements Serializable { public int remove(final int key) { @DoNotSub final int mask = entries.length - 1; @DoNotSub int keyIndex = Hashing.evenHash(key, mask); int oldValue = initialValue; while (entries[keyIndex + 1] != initialValue) { if (entries[keyIndex] == key) { oldValue = entries[keyIndex + 1]; entries[keyIndex + 1] = initialValue; size--; compactChain(keyIndex); break; } keyIndex = next(keyIndex, mask); } return oldValue; } }
Int2IntCounterMap implements Serializable { public int remove(final int key) { @DoNotSub final int mask = entries.length - 1; @DoNotSub int keyIndex = Hashing.evenHash(key, mask); int oldValue = initialValue; while (entries[keyIndex + 1] != initialValue) { if (entries[keyIndex] == key) { oldValue = entries[keyIndex + 1]; entries[keyIndex + 1] = initialValue; size--; compactChain(keyIndex); break; } keyIndex = next(keyIndex, mask); } return oldValue; } Int2IntCounterMap(final int initialValue);  Int2IntCounterMap(
        @DoNotSub final int initialCapacity,
        @DoNotSub final float loadFactor,
        final int initialValue); }
Int2IntCounterMap implements Serializable { public int remove(final int key) { @DoNotSub final int mask = entries.length - 1; @DoNotSub int keyIndex = Hashing.evenHash(key, mask); int oldValue = initialValue; while (entries[keyIndex + 1] != initialValue) { if (entries[keyIndex] == key) { oldValue = entries[keyIndex + 1]; entries[keyIndex + 1] = initialValue; size--; compactChain(keyIndex); break; } keyIndex = next(keyIndex, mask); } return oldValue; } Int2IntCounterMap(final int initialValue);  Int2IntCounterMap(
        @DoNotSub final int initialCapacity,
        @DoNotSub final float loadFactor,
        final int initialValue); int initialValue(); float loadFactor(); @DoNotSub int resizeThreshold(); @DoNotSub int capacity(); @DoNotSub int size(); boolean isEmpty(); int get(final int key); int put(final int key, final int value); int incrementAndGet(final int key); int decrementAndGet(final int key); int addAndGet(final int key, final int amount); int getAndIncrement(final int key); int getAndDecrement(final int key); int getAndAdd(final int key, final int amount); void forEach(final IntIntConsumer consumer); boolean containsKey(final int key); boolean containsValue(final int value); void clear(); void compact(); int computeIfAbsent(final int key, final IntUnaryOperator mappingFunction); int remove(final int key); int minValue(); int maxValue(); String toString(); }
Int2IntCounterMap implements Serializable { public int remove(final int key) { @DoNotSub final int mask = entries.length - 1; @DoNotSub int keyIndex = Hashing.evenHash(key, mask); int oldValue = initialValue; while (entries[keyIndex + 1] != initialValue) { if (entries[keyIndex] == key) { oldValue = entries[keyIndex + 1]; entries[keyIndex + 1] = initialValue; size--; compactChain(keyIndex); break; } keyIndex = next(keyIndex, mask); } return oldValue; } Int2IntCounterMap(final int initialValue);  Int2IntCounterMap(
        @DoNotSub final int initialCapacity,
        @DoNotSub final float loadFactor,
        final int initialValue); int initialValue(); float loadFactor(); @DoNotSub int resizeThreshold(); @DoNotSub int capacity(); @DoNotSub int size(); boolean isEmpty(); int get(final int key); int put(final int key, final int value); int incrementAndGet(final int key); int decrementAndGet(final int key); int addAndGet(final int key, final int amount); int getAndIncrement(final int key); int getAndDecrement(final int key); int getAndAdd(final int key, final int amount); void forEach(final IntIntConsumer consumer); boolean containsKey(final int key); boolean containsValue(final int value); void clear(); void compact(); int computeIfAbsent(final int key, final IntUnaryOperator mappingFunction); int remove(final int key); int minValue(); int maxValue(); String toString();  }