Package | Description |
---|---|
com.lc.utils |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
UBeanUtil.beanToMap(Object bean,
Map<String,Object> targetMap,
boolean ignoreNullValue,
Editor<String> keyEditor)
对象转Map
通过实现 Editor 可以自定义字段值,如果这个Editor返回null则忽略这个字段,以便实现: |
static <K,V> Map<K,V> |
UMapUtil.filter(Map<K,V> map,
Editor<Map.Entry<K,V>> editor)
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: |
Copyright © 2020. All rights reserved.