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

Method isNumber

APIJSONORM/src/main/java/apijson/StringUtil.java:565–572  ·  view source on GitHub ↗

判断是否全是数字 @param s @return

(String s)

Source from the content-addressed store, hash-verified

563 * @return
564 */
565 public static boolean isNumber(String s) {
566 if (isEmpty(s, true)) {
567 return false;
568 }
569
570 current = s;
571 return PATTERN_NUMBER.matcher(s).matches();
572 }
573 /**判断是否全是字母
574 * @param s
575 * @return

Callers 7

isNumberPasswordMethod · 0.95
isVerifyMethod · 0.95
isNumberOrAlphaMethod · 0.95
getNumberMethod · 0.95
getPriceMethod · 0.95

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected