public class StringUtils extends Object
限定符和类型 | 方法和说明 |
---|---|
static boolean |
areNotEmpty(String... values)
检查指定的字符串列表是否不为空。
|
static boolean |
isEmailAddress(String email)
判断是否是Email
|
static boolean |
isEmpty(String value)
检查指定的字符串是否为空。
|
static boolean |
isIpAddress(String ip)
判断是否是ip地址
|
static boolean |
isNumeric(Object obj)
检查对象是否为数字型字符串,包含负数开头的。
|
static boolean |
isPhoneNum(String phone)
判断是否是手机
|
static String |
stripNonValidXMLCharacters(String input)
过滤不可见字符
|
static String |
unicodeToChinese(String unicode)
把通用字符编码的字符串转化为汉字编码。
|
public static boolean isIpAddress(String ip)
ip
- public static boolean isEmailAddress(String email)
email
- public static boolean isPhoneNum(String phone)
phone
- public static boolean isEmpty(String value)
value
- 待检查的字符串public static boolean isNumeric(Object obj)
public static boolean areNotEmpty(String... values)
Copyright © 2017. All rights reserved.