MCPcopy Create free account
hub / github.com/egg82/fetcharr / getInt

Method getInt

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

Source from the content-addressed store, hash-verified

9 private static final Logger LOGGER = LoggerFactory.getLogger(NumberParser.class);
10
11 public static int getInt(int def, @Nullable JSONObject obj, @Nullable String key) {
12 return getInt(def, obj, key, false);
13 }
14
15 public static int getInt(int def, @Nullable JSONObject obj, @Nullable String key, boolean silent) {
16 if (obj == null || key == null || key.isEmpty()) {

Callers 15

CustomFormatResourceMethod · 0.95
RevisionMethod · 0.95
LanguageMethod · 0.95
SelectOptionMethod · 0.95
CommandResourceMethod · 0.95
MediaInfoResourceMethod · 0.95
RatingChildMethod · 0.95

Calls 2

parseIntMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected