public class MapUtil
extends cn.hutool.core.map.MapUtil
| 构造器和说明 |
|---|
MapUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Object> |
fromObject(Object obj)
对象转Map,K为String V为Object
调用
BeanUtil.beanToMap(Object) BeanUtil.beanToMap}实现
不进行驼峰转下划线,不忽略值为空的字段 |
static <T> T |
toObject(Map<?,?> map,
Class<T> t)
将map转化为bean对象
调用
BeanUtil.mapToBean(Map, Class, boolean, CopyOptions) BeanUtil.beanToMap}实现 |
builder, builder, builder, clear, createMap, createProxy, defaultIfEmpty, edit, empty, empty, emptyIfNull, filter, filter, get, get, get, get, getAny, getBool, getBool, getChar, getChar, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getQuietly, getQuietly, getShort, getShort, getStr, getStr, inverse, isEmpty, isNotEmpty, join, join, joinIgnoreNull, newConcurrentHashMap, newConcurrentHashMap, newConcurrentHashMap, newHashMap, newHashMap, newHashMap, newHashMap, newIdentityMap, newTreeMap, newTreeMap, of, of, of, of, removeAny, removeNullValue, renameKey, reverse, sort, sort, sortByValue, sortJoin, toCamelCaseMap, toListMap, toMapList, toObjectArray, unmodifiable, wrapCopyright © 2022. All rights reserved.