@Test public void testGet(){ testAdd(); Assert.assertNull(shortMap.get((short) 100)); Assert.assertEquals("Example0", shortMap.get((short) 0)); Assert.assertEquals("NewExample123", shortMap.get((short) 123)); Assert.assertEquals("Example34", shortMap.get((short) 34)); Assert.assertEquals("Example34", shortMap.get((short) 34, "DefaultValue")); Assert.assertEquals("DefaultValue", shortMap.get((short) 56, "DefaultValue")); Assert.assertEquals(3, shortMap.size); }
public V get (short key) { return get(key, null); }
ShortMap implements Iterable<ShortMap.Entry<V>> { public V get (short key) { return get(key, null); } }
ShortMap implements Iterable<ShortMap.Entry<V>> { public V get (short key) { return get(key, null); } ShortMap();  ShortMap(int initialCapacity);  ShortMap(int initialCapacity, float loadFactor);  ShortMap(ShortMap<? extends V> map); }
ShortMap implements Iterable<ShortMap.Entry<V>> { public V get (short key) { return get(key, null); } ShortMap();  ShortMap(int initialCapacity);  ShortMap(int initialCapacity, float loadFactor);  ShortMap(ShortMap<? extends V> map); V put(short key, V value); void putAll(ShortMap<V> map); V get(short key); V get(short key, V defaultValue); V remove(short key); void shrink(int maximumCapacity); void clear(int maximumCapacity); void clear(); boolean containsValue(Object value, boolean identity); boolean containsKey(short key); short findKey(Object value, boolean identity, short notFound); void ensureCapacity(int additionalCapacity); int hashCode(); boolean equals(Object obj); String toString(); Iterator<Entry<V>> iterator(); Entries<V> entries(); Values<V> values(); Keys keys(); }
ShortMap implements Iterable<ShortMap.Entry<V>> { public V get (short key) { return get(key, null); } ShortMap();  ShortMap(int initialCapacity);  ShortMap(int initialCapacity, float loadFactor);  ShortMap(ShortMap<? extends V> map); V put(short key, V value); void putAll(ShortMap<V> map); V get(short key); V get(short key, V defaultValue); V remove(short key); void shrink(int maximumCapacity); void clear(int maximumCapacity); void clear(); boolean containsValue(Object value, boolean identity); boolean containsKey(short key); short findKey(Object value, boolean identity, short notFound); void ensureCapacity(int additionalCapacity); int hashCode(); boolean equals(Object obj); String toString(); Iterator<Entry<V>> iterator(); Entries<V> entries(); Values<V> values(); Keys keys(); public int size; }