类 StringUtils
- java.lang.Object
-
- com.alibaba.dubbo.common.utils.StringUtils
-
public final class StringUtils extends Object
StringUtils
-
-
字段概要
字段 修饰符和类型 字段 说明 static String[]
EMPTY_STRING_ARRAY
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static String
camelToSplitName(String camelName, String split)
static String
getQueryStringValue(String qs, String key)
static String
getServiceKey(Map<String,String> ps)
static boolean
isBlank(String str)
static boolean
isContains(String[] values, String value)
static boolean
isContains(String values, String value)
static boolean
isEmpty(String str)
is empty string.static boolean
isEquals(String s1, String s2)
static boolean
isInteger(String str)
is integer string.static boolean
isJavaIdentifier(String s)
Returns true if s is a legal Java identifier.static boolean
isNotEmpty(String str)
is not empty string.static boolean
isNumeric(String str)
static String
join(String[] array)
join string.static String
join(String[] array, char split)
join string like javascript.static String
join(String[] array, String split)
join string like javascript.static String
join(Collection<String> coll, String split)
static int
parseInteger(String str)
static Map<String,String>
parseQueryString(String qs)
parse query string to Parameters.static String[]
split(String str, char ch)
split.static String
toArgumentString(Object[] args)
static String
toOSStyleKey(String key)
static String
toQueryString(Map<String,String> ps)
static String
toString(String msg, Throwable e)
static String
toString(Throwable e)
static String
translat(String src, String from, String to)
translat.
-
-
-
字段详细资料
-
EMPTY_STRING_ARRAY
public static final String[] EMPTY_STRING_ARRAY
-
-
方法详细资料
-
isBlank
public static boolean isBlank(String str)
-
isEmpty
public static boolean isEmpty(String str)
is empty string.- 参数:
str
- source string.- 返回:
- is empty.
-
isNotEmpty
public static boolean isNotEmpty(String str)
is not empty string.- 参数:
str
- source string.- 返回:
- is not empty.
-
isInteger
public static boolean isInteger(String str)
is integer string.- 参数:
str
-- 返回:
- is integer
-
parseInteger
public static int parseInteger(String str)
-
isJavaIdentifier
public static boolean isJavaIdentifier(String s)
Returns true if s is a legal Java identifier.
-
isContains
public static boolean isContains(String[] values, String value)
- 参数:
values
-value
-- 返回:
- contains
-
isNumeric
public static boolean isNumeric(String str)
-
translat
public static String translat(String src, String from, String to)
translat.- 参数:
src
- source string.from
- src char table.to
- target char table.- 返回:
- String.
-
join
public static String join(String[] array, char split)
join string like javascript.- 参数:
array
- String array.split
- split- 返回:
- String.
-
join
public static String join(String[] array, String split)
join string like javascript.- 参数:
array
- String array.split
- split- 返回:
- String.
-
join
public static String join(Collection<String> coll, String split)
-
parseQueryString
public static Map<String,String> parseQueryString(String qs)
parse query string to Parameters.- 参数:
qs
- query string.- 返回:
- Parameters instance.
-
-