java.lang.Object
org.miaixz.bus.core.center.map.BeanMap
Bean的Map接口实现 通过反射方式,将一个Bean的操作转化为Map操作
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()getProperty(String expression) 获取Path表达式对应的值booleanisEmpty()keySet()static BeanMap构建BeanMapvoidvoidputProperty(String expression, Object value) 设置Path表达式对应的值intsize()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
BeanMap
构造- Parameters:
bean- Bean
-
-
Method Details
-
of
构建BeanMap- Parameters:
bean- Bean- Returns:
- this
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
getProperty
获取Path表达式对应的值- Parameters:
expression- Path表达式- Returns:
- 值
-
put
-
putProperty
设置Path表达式对应的值- Parameters:
expression- Path表达式value- 新值
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-