mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix comment
This commit is contained in:
parent
def6b802f3
commit
e2c0d13c88
@ -302,7 +302,6 @@ public class Dict extends LinkedHashMap<String, Object> implements BasicTypeGett
|
||||
*
|
||||
* @param <T> 值类型
|
||||
* @param attr 字段名
|
||||
* @param defaultValue 默认值
|
||||
* @return 字段值
|
||||
* @since 4.6.3
|
||||
*/
|
||||
|
@ -62,7 +62,8 @@ public class MapUtil {
|
||||
* 如果提供的集合为{@code null},返回一个不可变的默认空集合,否则返回原集合<br>
|
||||
* 空集合使用{@link Collections#emptyMap()}
|
||||
*
|
||||
* @param <T> 集合元素类型
|
||||
* @param <K> 键类型
|
||||
* @param <V> 值类型
|
||||
* @param set 提供的集合,可能为null
|
||||
* @return 原集合,若为null返回空集合
|
||||
* @since 4.6.3
|
||||
|
@ -216,6 +216,18 @@ public class StrUtil {
|
||||
public static boolean isNotEmpty(CharSequence str) {
|
||||
return false == isEmpty(str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 当给定字符串为null时,转换为Empty
|
||||
*
|
||||
* @param str 被检查的字符串
|
||||
* @return 原字符串或者空串
|
||||
* @since 4.6.3
|
||||
* @see #nullToEmpty(CharSequence)
|
||||
*/
|
||||
public static String emptyIfNull(CharSequence str) {
|
||||
return nullToEmpty(str);
|
||||
}
|
||||
|
||||
/**
|
||||
* 当给定字符串为null时,转换为Empty
|
||||
|
Loading…
Reference in New Issue
Block a user