Tools.getValueStringByKey(Map<String, ?> map, String keyName) 方法

定义

Helper function to get a value from the given Map if the key name exists

public static String getValueStringByKey(Map<String, ?> map, String keyName)

参数

map
Map<String, ?>

The Map object to get the value from

keyName
String

The name of the key

返回

String

The value of the given key if exists otherwise empty string

适用于