Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
Object |
getProperty(String expression)
获取Path表达式对应的值
|
boolean |
isEmpty() |
Set<String> |
keySet() |
static BeanMap |
of(Object bean)
构建BeanMap
|
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> m) |
void |
putProperty(String expression,
Object value)
设置Path表达式对应的值
|
Object |
remove(Object key) |
int |
size() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public BeanMap(Object bean)
bean
- Beanpublic boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public Object getProperty(String expression)
expression
- Path表达式public void putProperty(String expression, Object value)
expression
- Path表达式value
- 新值Copyright © 2025. All rights reserved.