MCPcopy Create free account
hub / github.com/Teneted/Tenet / appendObjectData

Method appendObjectData

src/main/java/co/aikar/util/JSONUtil.java:49–54  ·  view source on GitHub ↗

This appends multiple key/value Obj pairs into a JSON Object @param parent Map to be appended to @param data Data to append @return Map

(Map parent, JSONPair... data)

Source from the content-addressed store, hash-verified

47 * @return Map
48 */
49 public static Map appendObjectData(Map parent, JSONPair... data) {
50 for (JSONPair JSONPair : data) {
51 parent.put(JSONPair.key, JSONPair.val);
52 }
53 return parent;
54 }
55
56 /**
57 * This builds a JSON array from a set of data

Callers 1

createObjectMethod · 0.95

Calls 1

putMethod · 0.65

Tested by

no test coverage detected