public class NameUtil
extends Object
用户名验证工具类
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
-
-
方法概要
static void
校验用户名、手机号、邮箱、昵称 不校验传空字符或null
static boolean
static boolean
static boolean
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
字段详细资料
-
regUsername
public static final String regUsername
- 另请参阅:
-
-
regMobile
public static final String regMobile
- 另请参阅:
-
-
regEmail
public static final String regEmail
- 另请参阅:
-
-
构造器详细资料
-
NameUtil
public NameUtil()
-
方法详细资料
-
username
public static boolean username(String v)
-
mobile
public static boolean mobile(String v)
-
email
public static boolean email(String v)
-
checkUserInfo
public static void checkUserInfo(User user)
校验用户名、手机号、邮箱、昵称 不校验传空字符或null
- 参数:
user -