MCPcopy Index your code
hub / github.com/egg82/fetcharr / get

Method get

Lib/src/main/java/me/egg82/arr/parse/StringParser.java:8–11  ·  view source on GitHub ↗
(@NotNull String def, @Nullable JSONObject obj, @Nullable String key)

Source from the content-addressed store, hash-verified

6
7public class StringParser {
8 public static @NotNull String get(@NotNull String def, @Nullable JSONObject obj, @Nullable String key) {
9 String r = get(obj, key);
10 return r != null ? r : def;
11 }
12
13 public static @Nullable String get(@Nullable JSONObject obj, @Nullable String key) {
14 if (obj == null || key == null || obj.isEmpty()) {

Callers 15

CustomFormatResourceMethod · 0.95
getMethod · 0.95
LanguageMethod · 0.95
getMethod · 0.95
getMethod · 0.95
getMethod · 0.95
getMethod · 0.95
getMethod · 0.95
CommandMethod · 0.95

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected