public class ListHashMap<K, V> extends Object implements Map
This class represents a Map that is optimized for a small number of
entries. For a number of entries up to listSize
the entries
are stored in arrays. After listSize
entries are exceeded
storage switches internally to a Map and converts back
to being array based when its size is less than or equal to listSize
.
Null keys or values are not supported.
This class is not thread safe.
Constructor and description |
---|
ListHashMap
() |
ListHashMap
(int listSize) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
clear() |
|
public boolean |
containsKey(Object key) |
|
public boolean |
containsValue(Object value) |
|
public Set<Entry<K, V>> |
entrySet() |
|
public V |
get(Object key) |
|
public boolean |
isEmpty() |
|
public Set<K> |
keySet() |
|
public V |
put(K key, V value) |
|
public void |
putAll(Map<? extends K, ? extends V> m) |
|
public V |
remove(Object key) |
|
public int |
size() |
|
public Collection<V> |
values() |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.