类 CommonUtils
java.lang.Object
com.publiccms.common.tools.CommonUtils
CommonUtils 通用Utils
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic Stringstatic StringgetConfig(Properties config, String key) static DategetDate()static Datestatic <T> StringjoinString(T... elements) static Stringstatic Stringstatic <T,F> Map<F, T> static <T,F> Map<F, T> listToMap(List<T> list, Function<T, F> keyMapper, UnaryOperator<T> valueMapper, Comparator<? super T> comparator, Predicate<T> filter) static <T,F, K> Map<F, T> listToMapSorted(List<T> list, Function<T, F> keyMapper, UnaryOperator<T> valueMapper, K[] sortKeys, Predicate<T> filter) static <T,F, K> Map<F, T> listToMapSorted(List<T> list, Function<T, F> keyMapper, K[] sortKeys) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleannotEmpty(Collection<?> value) static boolean
-
字段详细资料
-
dontNeedEncoding
-
caseDiff
private static final int caseDiff- 另请参阅:
-
-
构造器详细资料
-
CommonUtils
private CommonUtils()
-
-
方法详细资料
-
listToMap
- 类型参数:
T-F-- 参数:
list-keyMapper-- 返回:
-
listToMapSorted
public static <T,F, Map<F,K> T> listToMapSorted(List<T> list, Function<T, F> keyMapper, K[] sortKeys) - 类型参数:
T-F-- 参数:
list-keyMapper-sortKeys-- 返回:
-
listToMapSorted
public static <T,F, Map<F,K> T> listToMapSorted(List<T> list, Function<T, F> keyMapper, UnaryOperator<T> valueMapper, K[] sortKeys, Predicate<T> filter) - 类型参数:
T-F-- 参数:
list-keyMapper-valueMapper-sortKeys-filter-- 返回:
-
listToMap
public static <T,F> Map<F,T> listToMap(List<T> list, Function<T, F> keyMapper, UnaryOperator<T> valueMapper, Comparator<? super T> comparator, Predicate<T> filter) - 类型参数:
T-F-- 参数:
list-keyMapper-valueMapper-comparator-filter-- 返回:
-
encodeURI
-
joinString
- 参数:
elements-- 返回:
- 拼接后的文本
-
keep
- 参数:
string-length-- 返回:
- 截取后的文本
-
keep
- 参数:
string-length-append-- 返回:
- 截取后的文本
-
getDate
- 返回:
- 当前日期
-
getMinuteDate
- 返回:
- 精确到分钟的当前日期
-
notEmpty
- 参数:
value-- 返回:
- 是否为非空
-
empty
- 参数:
value-- 返回:
- 是否为空
-
notEmpty
- 参数:
value-- 返回:
- 是否非空
-
empty
- 参数:
value-- 返回:
- 是否为空
-
empty
- 参数:
value-- 返回:
- 是否为空
-
notEmpty
- 参数:
value-- 返回:
- 是否非空
-
notEmpty
- 参数:
value-- 返回:
- 是否非空
-
notEmpty
- 参数:
file-- 返回:
- 是否非空
-
empty
- 参数:
file-- 返回:
- 是否为空
-
notEmpty
- 参数:
value-- 返回:
- 是否非空
-
notEmpty
- 参数:
value-- 返回:
- 是否非空
-
empty
- 参数:
value-- 返回:
- 是否为空
-
getConfig
-