@Test public void shouldCopyConstructAndBeEqual() { final int[] testEntries = { 3, 1, 19, 7, 11, 12, 7 }; for (final int testEntry : testEntries) { intToObjectMap.put(testEntry, String.valueOf(testEntry)); } final Int2ObjectHashMap<String> mapCopy = new Int2ObjectHashMap<>(intToObjectMap); assertThat(mapCopy, is(intToObjectMap)); }
public V put(final Integer key, final V value) { return put(key.intValue(), value); }
Int2ObjectHashMap implements Map<Integer, V>, Serializable { public V put(final Integer key, final V value) { return put(key.intValue(), value); } }
Int2ObjectHashMap implements Map<Integer, V>, Serializable { public V put(final Integer key, final V value) { return put(key.intValue(), value); } Int2ObjectHashMap();  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor);  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor,
        final boolean shouldAvoidAllocation);  Int2ObjectHashMap(final Int2ObjectHashMap<V> mapToCopy); }
Int2ObjectHashMap implements Map<Integer, V>, Serializable { public V put(final Integer key, final V value) { return put(key.intValue(), value); } Int2ObjectHashMap();  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor);  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor,
        final boolean shouldAvoidAllocation);  Int2ObjectHashMap(final Int2ObjectHashMap<V> mapToCopy); float loadFactor(); @DoNotSub int capacity(); @DoNotSub int resizeThreshold(); @DoNotSub int size(); boolean isEmpty(); boolean containsKey(final Object key); boolean containsKey(final int key); boolean containsValue(final Object value); V get(final Object key); V get(final int key); V computeIfAbsent(final int key, final IntFunction<? extends V> mappingFunction); V put(final Integer key, final V value); @SuppressWarnings("unchecked") V put(final int key, final V value); V remove(final Object key); V remove(final int key); void clear(); void compact(); void putAll(final Map<? extends Integer, ? extends V> map); KeySet keySet(); ValueCollection values(); EntrySet entrySet(); String toString(); boolean equals(final Object o); @DoNotSub int hashCode(); V replace(final int key, final V value); boolean replace(final int key, final V oldValue, final V newValue); }
Int2ObjectHashMap implements Map<Integer, V>, Serializable { public V put(final Integer key, final V value) { return put(key.intValue(), value); } Int2ObjectHashMap();  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor);  Int2ObjectHashMap(
        @DoNotSub final int initialCapacity,
        final float loadFactor,
        final boolean shouldAvoidAllocation);  Int2ObjectHashMap(final Int2ObjectHashMap<V> mapToCopy); float loadFactor(); @DoNotSub int capacity(); @DoNotSub int resizeThreshold(); @DoNotSub int size(); boolean isEmpty(); boolean containsKey(final Object key); boolean containsKey(final int key); boolean containsValue(final Object value); V get(final Object key); V get(final int key); V computeIfAbsent(final int key, final IntFunction<? extends V> mappingFunction); V put(final Integer key, final V value); @SuppressWarnings("unchecked") V put(final int key, final V value); V remove(final Object key); V remove(final int key); void clear(); void compact(); void putAll(final Map<? extends Integer, ? extends V> map); KeySet keySet(); ValueCollection values(); EntrySet entrySet(); String toString(); boolean equals(final Object o); @DoNotSub int hashCode(); V replace(final int key, final V value); boolean replace(final int key, final V oldValue, final V newValue);  }