@Test public void testGet(){ testAdd(); Assert.assertNull(byteMap.get((byte) 100)); Assert.assertEquals("Example0", byteMap.get((byte) 0)); Assert.assertEquals("NewExample123", byteMap.get((byte) 123)); Assert.assertEquals("Example34", byteMap.get((byte) 34)); Assert.assertEquals("Example34", byteMap.get((byte) 34, "DefaultValue")); Assert.assertEquals("DefaultValue", byteMap.get((byte) 56, "DefaultValue")); Assert.assertEquals(3, byteMap.size); }
public V get (byte key) { return get(key, null); }
ByteMap implements Iterable<ByteMap.Entry<V>> { public V get (byte key) { return get(key, null); } }
ByteMap implements Iterable<ByteMap.Entry<V>> { public V get (byte key) { return get(key, null); } ByteMap();  ByteMap(int initialCapacity);  ByteMap(int initialCapacity, float loadFactor);  ByteMap(ByteMap<? extends V> map); }
ByteMap implements Iterable<ByteMap.Entry<V>> { public V get (byte key) { return get(key, null); } ByteMap();  ByteMap(int initialCapacity);  ByteMap(int initialCapacity, float loadFactor);  ByteMap(ByteMap<? extends V> map); V put(byte key, V value); void putAll(ByteMap<V> map); V get(byte key); V get(byte key, V defaultValue); V remove(byte key); void shrink(int maximumCapacity); void clear(int maximumCapacity); void clear(); boolean containsValue(Object value, boolean identity); boolean containsKey(byte key); byte findKey(Object value, boolean identity, byte 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(); }
ByteMap implements Iterable<ByteMap.Entry<V>> { public V get (byte key) { return get(key, null); } ByteMap();  ByteMap(int initialCapacity);  ByteMap(int initialCapacity, float loadFactor);  ByteMap(ByteMap<? extends V> map); V put(byte key, V value); void putAll(ByteMap<V> map); V get(byte key); V get(byte key, V defaultValue); V remove(byte key); void shrink(int maximumCapacity); void clear(int maximumCapacity); void clear(); boolean containsValue(Object value, boolean identity); boolean containsKey(byte key); byte findKey(Object value, boolean identity, byte 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; }