mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add methods
This commit is contained in:
@@ -33,7 +33,7 @@ public class PhoneUtil {
|
|||||||
* @param value 手机号码
|
* @param value 手机号码
|
||||||
* @return 是否为香港手机号码
|
* @return 是否为香港手机号码
|
||||||
* @since 5.6.3
|
* @since 5.6.3
|
||||||
* @author dazer & ourslook
|
* @author dazer, ourslook
|
||||||
*/
|
*/
|
||||||
public static boolean isMobileHk(CharSequence value) {
|
public static boolean isMobileHk(CharSequence value) {
|
||||||
return Validator.isMatchRegex(PatternPool.MOBILE_HK, value);
|
return Validator.isMatchRegex(PatternPool.MOBILE_HK, value);
|
||||||
@@ -56,7 +56,7 @@ public class PhoneUtil {
|
|||||||
* @param value 值
|
* @param value 值
|
||||||
* @return 是否为座机号码(中国)
|
* @return 是否为座机号码(中国)
|
||||||
* @since 5.6.3
|
* @since 5.6.3
|
||||||
* @author dazer & ourslook
|
* @author dazer, ourslook
|
||||||
*/
|
*/
|
||||||
public static boolean isTel400800(CharSequence value) {
|
public static boolean isTel400800(CharSequence value) {
|
||||||
return Validator.isMatchRegex(PatternPool.TEL_400_800, value);
|
return Validator.isMatchRegex(PatternPool.TEL_400_800, value);
|
||||||
|
Reference in New Issue
Block a user