Files
Jarvis_java/src/main/java/cn/van/business/util/StringsUtil.java
雷欧(林平凡) 4a6a477c0c 1
2024-12-02 10:08:02 +08:00

119 lines
1.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package cn.van.business.util;
import java.util.UUID;
/**
* 字符串常量集
*
*/
public class StringsUtil {
/**
* 空字符串
*/
public static final String EMPTY = "";
/**
* 逗号
*/
public static final String COMMA = ",";
/**
* 句点
*/
public static final String DOT = ".";
/**
* 下划线
*/
public static final String UNDERLINE = "_";
/**
* 空格
*/
public static final String SPACE = " ";
/**
* 等于
*/
public static final String EQUAL = "=";
/**
* 星号
*/
public static final String ASTERISK = "*";
/**
* 双引号
*/
public static final String DOUBLE_QUOTES = "\"";
/**
* 单引号
*/
public static final String SINGLE_QUOTES = "'";
/**
* 回车符
*/
public static final String ENTER = "\n";
/**
* 左括弧
*/
public static final String LEFT_BRACKET = "(";
/**
* 右括弧
*/
public static final String RIGHT_BRACKET = ")";
/**
* 冒号
*/
public static final String COLON = ":";
/**
* 分号
*/
public static final String SEMICOLON = ";";
/**
* 斜杠
*/
public static final String SLASH = "/";
/**
* 反斜杠
*/
public static final String BACKSLASH = "\\";
/**
* 百分号
*/
public static final String PERCENT = "%";
/**
* 减号
*/
public static final String MINUS = "-";
/**
* 加号
*/
public static final String PLUS = "+";
/**
* 与号
*/
public static final String AND = "&";
/**
* @
*/
public static final String AT = "@";
/**
* 井号
*/
public static final String WELL = "#";
/**
* 字符编码UTF-8
*/
public static final String ENCODING_UTF8 = "UTF-8";
/**
* 字符编码GBK
*/
public static final String ENCODING_GBK = "GBK";
/**
* 默认字符编码
*/
public static final String DEFAULT_ENCODING = StringsUtil.ENCODING_UTF8;
public static String randomUUID() {
return UUID.randomUUID().toString();
}
}