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

Method isBooleanOrNumber

APIJSONORM/src/main/java/apijson/SQL.java:403–408  ·  view source on GitHub ↗
(String type)

Source from the content-addressed store, hash-verified

401
402
403 public static boolean isBooleanOrNumber(String type) {
404 type = StringUtil.toUpperCase(type, true);
405 return type.isEmpty() || (type.endsWith("INT") && type.endsWith("POINT") == false)
406 || type.endsWith("BOOLEAN") || type.endsWith("ENUM")
407 || type.endsWith("FLOAT") || type.endsWith("DOUBLE") || type.endsWith("DECIMAL");
408 }
409
410
411}

Callers 1

concatJoinOnMethod · 0.95

Calls 2

toUpperCaseMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected