K - 键类型V - 值类型public class MapWrapper<K,V> extends Object implements Map<K,V>, Iterable<Map.Entry<K,V>>, Serializable, Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
DEFAULT_INITIAL_CAPACITY
默认初始大小
|
protected static float |
DEFAULT_LOAD_FACTOR
默认增长因子
|
| 构造器和说明 |
|---|
MapWrapper(Map<K,V> raw)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
Map<K,V> |
getRaw()
获取原始的Map
|
boolean |
isEmpty() |
Iterator<Map.Entry<K,V>> |
iterator() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllforEach, spliteratorprotected static final float DEFAULT_LOAD_FACTOR
protected static final int DEFAULT_INITIAL_CAPACITY
public boolean containsKey(Object key)
containsKey 在接口中 Map<K,V>public boolean containsValue(Object value)
containsValue 在接口中 Map<K,V>Copyright © 2023. All rights reserved.