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

Method pair

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

Creates a key/value "JSONPair" object @param key Key to use @param obj Value to use @return JSONPair

(String key, Object obj)

Source from the content-addressed store, hash-verified

22 * @return JSONPair
23 */
24 public static JSONPair pair(String key, Object obj) {
25 return new JSONPair(key, obj);
26 }
27
28 public static JSONPair pair(long key, Object obj) {
29 return new JSONPair(String.valueOf(key), obj);

Callers

nothing calls this directly

Calls 1

valueOfMethod · 0.45

Tested by

no test coverage detected