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