public class StringTools extends Object
| 构造器和说明 |
|---|
StringTools() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
filterEmoji(String value)
过滤掉表情
|
static boolean |
isEmpty(CharSequence value)
字符串是否为空
|
static boolean |
isNotEmpty(CharSequence value)
字符串是否不为空
|
static void |
main(String[] args) |
static boolean |
maxLength(String value,
Integer max)
最长长度限制
|
static boolean |
rangeLength(String value,
Integer min,
Integer max)
字符长度限制
|
public static boolean isEmpty(CharSequence value)
value - 传入字符串public static boolean isNotEmpty(CharSequence value)
value - 传入字符串public static boolean rangeLength(String value, Integer min, Integer max)
value - 传入字符串min - 最小长度max - 最长长度public static boolean maxLength(String value, Integer max)
value - 传入字符串max - 最长长度public static void main(String[] args)
Copyright © 2022. All rights reserved.