K - 键类型V - 值类型public class MapWrapper<K,V> extends Object implements Map<K,V>, Iterable<Map.Entry<K,V>>, Serializable, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_INITIAL_CAPACITY
默认初始大小
|
protected static float |
DEFAULT_LOAD_FACTOR
默认增长因子
|
| Constructor and Description |
|---|
MapWrapper(Map<K,V> raw)
构造
|
| Modifier and Type | Method and Description |
|---|---|
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
Copyright © 2020. All rights reserved.