| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
static MapProxy |
create(Map<?,?> map)
创建代理Map
此类对Map做一次包装,提供各种getXXX方法
|
Set<Map.Entry<Object,Object>> |
entrySet() |
Object |
get(Object key) |
Object |
getObj(Object key,
Object defaultValue) |
boolean |
isEmpty() |
Set<Object> |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map<?,?> m) |
Object |
remove(Object key) |
int |
size() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MapProxy(Map<?,?> map)
map - 被代理的Mappublic static MapProxy create(Map<?,?> map)
map - 被代理的MapMapProxypublic boolean containsKey(Object key)
containsKey in interface Map<Object,Object>public boolean containsValue(Object value)
containsValue in interface Map<Object,Object>Copyright © 2019. All rights reserved.