Class StringUtils
java.lang.Object
com.mclds.plugins.customplugin.utils.StringUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatLongContentToLines(String content, int maxLengthPerLine) 将长文本格式化为多行,缩进默认为0formatLongContentToLines(String content, int maxLengthPerLine, int indent) 将长文本格式化为多行static String
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
formatLongContentToLines
将长文本格式化为多行,缩进默认为0- Parameters:
content- 长文本maxLengthPerLine- 每行最大长度- Returns:
- 格式化后的多行文本
-
formatLongContentToLines
public static List<String> formatLongContentToLines(String content, int maxLengthPerLine, int indent) 将长文本格式化为多行- Parameters:
content- 长文本maxLengthPerLine- 每行最大长度indent- 缩进- Returns:
- 格式化后的多行文本
-
of
-