MCPcopy Create free account
hub / github.com/PaperMC/Paper / pair

Method pair

paper-api/src/main/java/co/aikar/util/JSONUtil.java:28–31  ·  view source on GitHub ↗

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

(@NotNull String key, @Nullable Object obj)

Source from the content-addressed store, hash-verified

26 * @return JSONPair
27 */
28 @NotNull
29 public static JSONPair pair(@NotNull String key, @Nullable Object obj) {
30 return new JSONPair(key, obj);
31 }
32
33 @NotNull
34 public static JSONPair pair(long key, @Nullable Object obj) {

Callers 2

applyMethod · 0.80
exportMethod · 0.80

Calls 1

valueOfMethod · 0.65

Tested by

no test coverage detected