@Test public void shouldReturnNullWhenNotFoundItem() { final int keyPartA = 3; final int keyPartB = 7; assertNull(map.get(keyPartA, keyPartB)); }
@SuppressWarnings("unchecked") public V get(final int keyPartA, final int keyPartB) { final long key = compoundKey(keyPartA, keyPartB); final int mask = values.length - 1; int index = Hashing.hash(key, mask); Object value; while (null != (value = values[index])) { if (key == keys[index]) { break; } index = ++index & mask; } return (V)value; }
BiInt2ObjectMap implements Serializable { @SuppressWarnings("unchecked") public V get(final int keyPartA, final int keyPartB) { final long key = compoundKey(keyPartA, keyPartB); final int mask = values.length - 1; int index = Hashing.hash(key, mask); Object value; while (null != (value = values[index])) { if (key == keys[index]) { break; } index = ++index & mask; } return (V)value; } }
BiInt2ObjectMap implements Serializable { @SuppressWarnings("unchecked") public V get(final int keyPartA, final int keyPartB) { final long key = compoundKey(keyPartA, keyPartB); final int mask = values.length - 1; int index = Hashing.hash(key, mask); Object value; while (null != (value = values[index])) { if (key == keys[index]) { break; } index = ++index & mask; } return (V)value; } BiInt2ObjectMap();  BiInt2ObjectMap(final int initialCapacity, final float loadFactor); }
BiInt2ObjectMap implements Serializable { @SuppressWarnings("unchecked") public V get(final int keyPartA, final int keyPartB) { final long key = compoundKey(keyPartA, keyPartB); final int mask = values.length - 1; int index = Hashing.hash(key, mask); Object value; while (null != (value = values[index])) { if (key == keys[index]) { break; } index = ++index & mask; } return (V)value; } BiInt2ObjectMap();  BiInt2ObjectMap(final int initialCapacity, final float loadFactor); int capacity(); float loadFactor(); int resizeThreshold(); void clear(); void compact(); @SuppressWarnings("unchecked") V put(final int keyPartA, final int keyPartB, final V value); @SuppressWarnings("unchecked") V get(final int keyPartA, final int keyPartB); @SuppressWarnings("unchecked") V remove(final int keyPartA, final int keyPartB); V computeIfAbsent(final int keyPartA, final int keyPartB, final EntryFunction<? extends V> mappingFunction); @SuppressWarnings("unchecked") void forEach(final Consumer<V> consumer); @SuppressWarnings("unchecked") void forEach(final EntryConsumer<V> consumer); int size(); boolean isEmpty(); String toString(); }
BiInt2ObjectMap implements Serializable { @SuppressWarnings("unchecked") public V get(final int keyPartA, final int keyPartB) { final long key = compoundKey(keyPartA, keyPartB); final int mask = values.length - 1; int index = Hashing.hash(key, mask); Object value; while (null != (value = values[index])) { if (key == keys[index]) { break; } index = ++index & mask; } return (V)value; } BiInt2ObjectMap();  BiInt2ObjectMap(final int initialCapacity, final float loadFactor); int capacity(); float loadFactor(); int resizeThreshold(); void clear(); void compact(); @SuppressWarnings("unchecked") V put(final int keyPartA, final int keyPartB, final V value); @SuppressWarnings("unchecked") V get(final int keyPartA, final int keyPartB); @SuppressWarnings("unchecked") V remove(final int keyPartA, final int keyPartB); V computeIfAbsent(final int keyPartA, final int keyPartB, final EntryFunction<? extends V> mappingFunction); @SuppressWarnings("unchecked") void forEach(final Consumer<V> consumer); @SuppressWarnings("unchecked") void forEach(final EntryConsumer<V> consumer); int size(); boolean isEmpty(); String toString();  }