@Deprecated public class SmallMap<K,V> extends Object implements Map<K,V>
null is not supported for keys or values.
| Constructor and Description |
|---|
SmallMap()
Deprecated.
Creates empty map.
|
SmallMap(Map<? extends K,? extends V> initMap)
Deprecated.
Creates map filled with entries from provided map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
|
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Set<Map.Entry<K,V>> |
entrySet()
Deprecated.
|
V |
get(Object key)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
Set<K> |
keySet()
Deprecated.
Returns a set view of the keys contained in this map.
|
V |
put(K key,
V value)
Deprecated.
|
void |
putAll(Map<? extends K,? extends V> otherMap)
Deprecated.
|
V |
remove(Object key)
Deprecated.
|
int |
size()
Deprecated.
|
Collection<V> |
values()
Deprecated.
Returns a collection of the values contained in this map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Set<K> keySet()
The current implementation does not allow changes to the returned key set (which would have to be reflected in the underlying map.
public Collection<V> values()
The current implementation does not allow changes to the returned collection (which would have to be reflected in the underlying map.
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.