类 ValiToPhoneUtils
java.lang.Object
dev.utils.common.validator.ValiToPhoneUtils
detail: 检验联系 ( 手机号码、座机 ) 工具类
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static boolean是否中国手机号码static booleanisPhoneCallNum(String phone) 验证电话号码的格式static booleanisPhoneSimple(String phone) 中国手机号码格式验证 ( 简单手机号码校验 )static booleanisPhoneToChinaBroadcast(String phone) 是否中国广电手机号码static booleanisPhoneToChinaHkMobile(String phone) 是否中国香港手机号码static booleanisPhoneToChinaMobile(String phone) 是否中国移动手机号码static booleanisPhoneToChinaTelecom(String phone) 是否中国电信手机号码static booleanisPhoneToChinaUnicom(String phone) 是否中国联通手机号码static booleanisPhoneToChinaVirtual(String phone) 是否中国虚拟运营商手机号码
-
字段详细资料
-
方法详细资料
-
isPhoneSimple
中国手机号码格式验证 ( 简单手机号码校验 )在输入可以调用该方法, 点击发送验证码, 使用 isPhone 简单手机号码校验 校验手机号码的长度和 1 开头 ( 是否 11 位 )- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhone
是否中国手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaMobile
是否中国移动手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaUnicom
是否中国联通手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaTelecom
是否中国电信手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaBroadcast
是否中国广电手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaVirtual
是否中国虚拟运营商手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneToChinaHkMobile
是否中国香港手机号码- 参数:
phone- 待校验的手机号码- 返回:
trueyes,falseno
-
isPhoneCallNum
验证电话号码的格式- 参数:
phone- 待校验的号码- 返回:
trueyes,falseno
-