@Test public void testIsArmyIdCard() { System.out.println(ValidateUtil.isPhone("15n41678167")); }
public static boolean isArmyIdCard(String armyIdCard) { return validate(armyIdCard, ARMY_ID_CARD); }
ValidateUtil { public static boolean isArmyIdCard(String armyIdCard) { return validate(armyIdCard, ARMY_ID_CARD); } }
ValidateUtil { public static boolean isArmyIdCard(String armyIdCard) { return validate(armyIdCard, ARMY_ID_CARD); }  }
ValidateUtil { public static boolean isArmyIdCard(String armyIdCard) { return validate(armyIdCard, ARMY_ID_CARD); }  static boolean validate(String str, String pattern); static boolean isEmail(String email); static boolean isNotEmail(String email); static boolean isChinese(String chineseStr); static boolean isNotChinese(String chineseStr); static boolean isNumberLetter(String str); static boolean isNotNumberLetter(String str); static boolean isQq(String qq); static boolean isNumber(String str); static boolean isNotNumber(String str); static boolean isLetter(String str); static boolean isZipCode(String zipCode); static boolean isPhone(String phone); static boolean isNotPhone(String phone); static boolean isTelephone(String phoneNumber); static boolean isNotTelephone(String phoneNumber); static boolean isIdCard(String cardNumber); static boolean isNotIdCard(String cardNumber); static boolean isUserName(String str); static boolean isPassword(String str); static boolean isNonnegativeInteger(String str); static boolean isUuid(String str); static boolean isNotUuid(String str); static boolean isDate(String date); static boolean isNotDate(String date); static boolean isTimestamp(String date); static boolean isNotTimestamp(String date); static boolean isIP(String ip); static boolean isNotIP(String ip); static boolean isUrl(String url); static boolean isNotUrl(String url); static boolean isDomain(String domain); static boolean isNotDomain(String domain); static boolean isIntOrFloat(String number); static boolean isNotIntOrFloat(String number); static boolean isFloat(String number); static boolean isNotFloat(String number); static boolean isNegativeFloat(String number); static boolean isNotNegativeFloat(String number); static boolean isPositiveFloat(String number); static boolean isNotPositiveFloat(String number); static boolean isPositiveInteger(String number); static boolean isArmyIdCard(String armyIdCard); static boolean isNotArmyIdCard(String armyIdCard); static boolean isContainsForbiddenCharacter(String number); static boolean isYear(String yearNumber); static boolean isNotYear(String yearNumber); static boolean isTime(String time); static boolean isNotTime(String time); static boolean isContainsChinese(String str); }
ValidateUtil { public static boolean isArmyIdCard(String armyIdCard) { return validate(armyIdCard, ARMY_ID_CARD); }  static boolean validate(String str, String pattern); static boolean isEmail(String email); static boolean isNotEmail(String email); static boolean isChinese(String chineseStr); static boolean isNotChinese(String chineseStr); static boolean isNumberLetter(String str); static boolean isNotNumberLetter(String str); static boolean isQq(String qq); static boolean isNumber(String str); static boolean isNotNumber(String str); static boolean isLetter(String str); static boolean isZipCode(String zipCode); static boolean isPhone(String phone); static boolean isNotPhone(String phone); static boolean isTelephone(String phoneNumber); static boolean isNotTelephone(String phoneNumber); static boolean isIdCard(String cardNumber); static boolean isNotIdCard(String cardNumber); static boolean isUserName(String str); static boolean isPassword(String str); static boolean isNonnegativeInteger(String str); static boolean isUuid(String str); static boolean isNotUuid(String str); static boolean isDate(String date); static boolean isNotDate(String date); static boolean isTimestamp(String date); static boolean isNotTimestamp(String date); static boolean isIP(String ip); static boolean isNotIP(String ip); static boolean isUrl(String url); static boolean isNotUrl(String url); static boolean isDomain(String domain); static boolean isNotDomain(String domain); static boolean isIntOrFloat(String number); static boolean isNotIntOrFloat(String number); static boolean isFloat(String number); static boolean isNotFloat(String number); static boolean isNegativeFloat(String number); static boolean isNotNegativeFloat(String number); static boolean isPositiveFloat(String number); static boolean isNotPositiveFloat(String number); static boolean isPositiveInteger(String number); static boolean isArmyIdCard(String armyIdCard); static boolean isNotArmyIdCard(String armyIdCard); static boolean isContainsForbiddenCharacter(String number); static boolean isYear(String yearNumber); static boolean isNotYear(String yearNumber); static boolean isTime(String time); static boolean isNotTime(String time); static boolean isContainsChinese(String str); static final String EMAIL_PATTERN; static final String CHINESE_PATTERN; static final String CONTAINS_CHINESE_PATTERN; static final String NUMBER_ADN_LETTER; static final String QQ_PATTERN; static final String NUMBER_PATTERN; static final String LETTER_PATTERN; static final String ZIPCODE_PATTERN; static final String PHONE_PATTERN; static final String TELEPHONE_PATTERN; static final String TELEPHONE_400_PATTERN; static final String IDCARD_PATTERN; static final String USERNAME_PATTERN; static final String PASSWORD_PATTERN; static final String UUID_PATTERN; static final String YEAR_PATTERN; static final String TIME_PATTERN; static final String DATE_PATTERN; static final String TIME_STAMP_PATTERN; static final String IPV4_PATTERN; static final String IPV6_PATTERN; static final String URL_PATTERN; static final String DOMAIN_PATTERN; static final String INT_OR_FLOAT_PATTERN; static final String FLOAT_PATTERN; static final String POSITIVE_INTEGER; static final String ARMY_ID_CARD; static final String[] forbidden; }