MCPcopy Index your code
hub / github.com/Tencent/APIJSON / getString

Method getString

APIJSONORM/src/main/java/apijson/JSON.java:668–675  ·  view source on GitHub ↗

Get a string value from a Map @param map Source map @param key The key @return The string value

(Map<String, Object> map, String key)

Source from the content-addressed store, hash-verified

666 * @return The string value
667 */
668 public static String getString(Map<String, Object> map, String key) {
669 Object value = map == null || key == null ? null : map.get(key);
670 if (value == null) {
671 return null;
672 }
673
674 return value.toString();
675 }
676
677
678 public static Object getFromObjOrArr(Object parent, String k) {

Callers

nothing calls this directly

Calls 2

toStringMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected