mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
改为CharSequence
This commit is contained in:
parent
173211eaef
commit
42b0820129
@ -94,7 +94,7 @@ public class Opt<T> {
|
||||
* @param value 传入需要包裹的元素
|
||||
* @return 一个包裹里元素可能为空,或者为空字符串的 {@code Opt}
|
||||
*/
|
||||
public static Opt<String> ofBlankAble(final String value) {
|
||||
public static Opt<CharSequence> ofBlankAble(final CharSequence value) {
|
||||
return StrUtil.isBlank(value) ? empty() : new Opt<>(value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user