public class MapUtil
extends cn.hutool.core.map.MapUtil
| 构造器和说明 |
|---|
MapUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Boolean |
getBoolean(Map<?,?> map,
Object key)
获取类型为 Boolean 返回值,默认为null
|
static Boolean |
getBoolean(Map<?,?> map,
Object key,
Boolean defaultValue)
获取类型为 Boolean 返回值
|
static boolean |
getBooleanValue(Map<?,?> map,
Object key)
获取类型为 boolean 返回值,默认:false
|
static boolean |
getBooleanValue(Map<?,?> map,
Object key,
boolean defaultValue)
获取类型为 boolean 返回值
|
static Byte |
getByte(Map<?,?> map,
Object key)
获取类型为 Byte 的值,默认为null
|
static Byte |
getByte(Map<?,?> map,
Object key,
Byte defaultValue)
获取类型为 Byte 的值
|
static byte |
getByteValue(Map<?,?> map,
Object key)
获取类型为 byte 的值,默认:0
|
static byte |
getByteValue(Map<?,?> map,
Object key,
byte defaultValue)
获取类型为 byte 的值
|
static Date |
getDate(Map<?,?> map,
Object key)
获取类型为 Date 的值,默认为null
|
static Date |
getDate(Map<?,?> map,
Object key,
Date defaultValue)
获取类型为 Date 的值
|
static Double |
getDouble(Map<?,?> map,
Object key)
获取类型为 Double 的值,默认为null
|
static Double |
getDouble(Map<?,?> map,
Object key,
Double defaultValue)
获取类型为 Double 的值
|
static double |
getDoubleValue(Map<?,?> map,
Object key)
获取类型为 double 的值,默认:0
|
static double |
getDoubleValue(Map<?,?> map,
Object key,
double defaultValue)
获取类型为 double 的值
|
static Float |
getFloat(Map<?,?> map,
Object key)
获取类型为 Float 的值,默认为null
|
static Float |
getFloat(Map<?,?> map,
Object key,
Float defaultValue)
获取类型为 Float 的值
|
static float |
getFloatValue(Map<?,?> map,
Object key)
获取类型为 float 的值,默认:0
|
static float |
getFloatValue(Map<?,?> map,
Object key,
float defaultValue)
获取类型为 float 的值
|
static Integer |
getInteger(Map<?,?> map,
Object key)
获取类型为 Integer 的值,默认为null
|
static Integer |
getInteger(Map<?,?> map,
Object key,
Integer defaultValue)
获取类型为 Integer 的值
|
static int |
getIntValue(Map<?,?> map,
Object key)
获取类型为 int 的值,默认:0
|
static int |
getIntValue(Map<?,?> map,
Object key,
int defaultValue)
获取类型为 int 的值
|
static Long |
getLong(Map<?,?> map,
Object key)
获取类型为 Long 的值,默认为null
|
static Long |
getLong(Map<?,?> map,
Object key,
Long defaultValue)
获取类型为 Long 的值
|
static long |
getLongValue(Map<?,?> map,
Object key)
获取类型为 long 的值,默认:0
|
static long |
getLongValue(Map<?,?> map,
Object key,
long defaultValue)
获取类型为 long 的值
|
static Map<?,?> |
getMap(Map<?,?> map,
Object key)
获取类型为 Map 的值,默认为null
|
static Map<?,?> |
getMap(Map<?,?> map,
Object key,
Map<?,?> defaultValue)
获取类型为 Map 的值
|
static Object |
getObject(Map<?,?> map,
Object key)
获取类型为 Object 的值,默认为null
|
static Object |
getObject(Map<?,?> map,
Object key,
Object defaultValue)
获取类型为 Object 的值
|
static Short |
getShort(Map<?,?> map,
Object key)
获取类型为 Short 的值,默认为null
|
static Short |
getShort(Map<?,?> map,
Object key,
Short defaultValue)
获取类型为 Short 的值
|
static short |
getShortValue(Map<?,?> map,
Object key)
获取类型为 short 的值,默认:0
|
static short |
getShortValue(Map<?,?> map,
Object key,
short defaultValue)
获取类型为 short 的值
|
static String |
getString(Map<?,?> map,
Object key)
获取类型为 String 的值,默认为null
|
static String |
getString(Map<?,?> map,
Object key,
String defaultValue)
获取类型为 String 的值
|
builder, builder, builder, createMap, createProxy, filter, filter, filter, get, get, getAny, getBool, getChar, getInt, getStr, inverse, isEmpty, isNotEmpty, join, join, joinIgnoreNull, newHashMap, newHashMap, newHashMap, newHashMap, newIdentityMap, newTreeMap, newTreeMap, of, of, of, renameKey, reverse, sort, sort, toCamelCaseMap, toListMap, toMapList, toObjectArray, wrappublic static Object getObject(Map<?,?> map, Object key, Object defaultValue)
map - Map对象key - 键defaultValue - 默认值public static String getString(Map<?,?> map, Object key, String defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Boolean getBoolean(Map<?,?> map, Object key, Boolean defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Byte getByte(Map<?,?> map, Object key, Byte defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Short getShort(Map<?,?> map, Object key, Short defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Integer getInteger(Map<?,?> map, Object key, Integer defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Long getLong(Map<?,?> map, Object key, Long defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Float getFloat(Map<?,?> map, Object key, Float defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Double getDouble(Map<?,?> map, Object key, Double defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Date getDate(Map<?,?> map, Object key, Date defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Map<?,?> getMap(Map<?,?> map, Object key, Map<?,?> defaultValue)
map - Map对象key - 键defaultValue - 默认值public static Object getObject(Map<?,?> map, Object key)
map - Map对象key - 键public static String getString(Map<?,?> map, Object key)
map - Map对象key - 键public static Boolean getBoolean(Map<?,?> map, Object key)
map - Map对象key - 键public static Byte getByte(Map<?,?> map, Object key)
map - Map对象key - 键public static Short getShort(Map<?,?> map, Object key)
map - Map对象key - 键public static Integer getInteger(Map<?,?> map, Object key)
map - Map对象key - 键public static Long getLong(Map<?,?> map, Object key)
map - Map对象key - 键public static Float getFloat(Map<?,?> map, Object key)
map - Map对象key - 键public static Double getDouble(Map<?,?> map, Object key)
map - Map对象key - 键public static Date getDate(Map<?,?> map, Object key)
map - Map对象key - 键public static Map<?,?> getMap(Map<?,?> map, Object key)
map - Map对象key - 键public static boolean getBooleanValue(Map<?,?> map, Object key, boolean defaultValue)
map - Map对象key - 键defaultValue - 默认值public static byte getByteValue(Map<?,?> map, Object key, byte defaultValue)
map - Map对象key - 键defaultValue - 默认值public static short getShortValue(Map<?,?> map, Object key, short defaultValue)
map - Map对象key - 键defaultValue - 默认值public static int getIntValue(Map<?,?> map, Object key, int defaultValue)
map - Map对象key - 键defaultValue - 默认值public static long getLongValue(Map<?,?> map, Object key, long defaultValue)
map - Map对象key - 键defaultValue - 默认值public static float getFloatValue(Map<?,?> map, Object key, float defaultValue)
map - Map对象key - 键defaultValue - 默认值public static double getDoubleValue(Map<?,?> map, Object key, double defaultValue)
map - Map对象key - 键defaultValue - 默认值public static boolean getBooleanValue(Map<?,?> map, Object key)
map - Map对象key - 键public static byte getByteValue(Map<?,?> map, Object key)
map - Map对象key - 键public static short getShortValue(Map<?,?> map, Object key)
map - Map对象key - 键public static int getIntValue(Map<?,?> map, Object key)
map - Map对象key - 键public static long getLongValue(Map<?,?> map, Object key)
map - Map对象key - 键public static float getFloatValue(Map<?,?> map, Object key)
map - Map对象key - 键Copyright © 2019. All rights reserved.