MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isJSONType

Method isJSONType

APIJSONORM/src/main/java/apijson/JSON.java:240–242  ·  view source on GitHub ↗

判断是否为JSONObject或JSONArray的isXxx方法名 @param key @return

(String key)

Source from the content-addressed store, hash-verified

238 * @return
239 */
240 public static boolean isJSONType(String key) {
241 return key != null && key.startsWith("is") && key.length() > 2 && key.contains("JSON");
242 }
243
244 public static boolean isBoolOrNumOrStr(Object obj) {
245 return obj instanceof Boolean || obj instanceof Number || obj instanceof String;

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected