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

Method get

Lib/src/main/java/me/egg82/arr/parse/ObjectParser.java:22–24  ·  view source on GitHub ↗
(@NotNull T def, @NotNull Class<T> type, @NotNull ArrAPI api, @Nullable JSONObject obj, @Nullable String key)

Source from the content-addressed store, hash-verified

20 private static final ConcurrentMap<Class<? extends APIObject>, @Nullable Constructor<?>> constructors = new ConcurrentHashMap<>();
21
22 public static <T extends APIObject> @NotNull T get(@NotNull T def, @NotNull Class<T> type, @NotNull ArrAPI api, @Nullable JSONObject obj, @Nullable String key) {
23 return get(def, type, api, obj, key, false);
24 }
25
26 public static <T extends APIObject> @NotNull T get(@NotNull T def, @NotNull Class<T> type, @NotNull ArrAPI api, @Nullable JSONObject obj, @Nullable String key, boolean silent) {
27 T r = get(type, api, obj, key, silent);

Callers 15

QualityModelMethod · 0.95
CommandResourceMethod · 0.95
MovieFileResourceMethod · 0.95
RatingsMethod · 0.95
MovieResourceMethod · 0.95
SeasonResourceMethod · 0.95
QualityModelMethod · 0.95
CommandResourceMethod · 0.95
SeriesResourceMethod · 0.95

Calls 2

buildMethod · 0.95
hasMethod · 0.45

Tested by

no test coverage detected