public class CollectionUtils extends Object
| 构造器和说明 |
|---|
CollectionUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
decodeMap(String data)
Decode string to map
|
static String |
encodeMap(Map<String,String> map)
Encode map to string
|
static boolean |
isEmpty(Collection col)
Is empty boolean.
|
static boolean |
isEmpty(Object[] array)
Is empty boolean.
|
static boolean |
isNotEmpty(Collection col)
Is not empty boolean.
|
static boolean |
isNotEmpty(Object[] array)
Is not empty boolean.
|
static boolean |
isSizeEquals(Collection col0,
Collection col1)
Is size equals boolean.
|
static String |
toString(Collection col)
To string string.
|
static List<String> |
toUpperList(List<String> sourceList)
To upper list list.
|
public static boolean isEmpty(Collection col)
col - the colpublic static boolean isNotEmpty(Collection col)
col - the colpublic static boolean isEmpty(Object[] array)
array - the arraypublic static boolean isNotEmpty(Object[] array)
array - the arraypublic static String toString(Collection col)
col - the colpublic static boolean isSizeEquals(Collection col0, Collection col1)
col0 - the col 0col1 - the col 1public static String encodeMap(Map<String,String> map)
map - origin mappublic static Map<String,String> decodeMap(String data)
data - dataCopyright © 2019 Seata. All rights reserved.