类 StringUtil
java.lang.Object
top.shjibi.plugineer.util.StringUtil
与字符串相关的工具类
-
方法详细资料
-
color
给消息染色 -
strip
去掉消息的颜色 -
remove
@NotNull public static @NotNull String remove(@NotNull @NotNull String s, @NotNull @NotNull String... remove) 从指定字符串移除s- 参数:
s- 给定的字符串remove- 需要移除的字符串- 返回:
- 移除remove后的字符串s
-
join
@NotNull public static @NotNull String join(@NotNull @NotNull String s, @NotNull @NotNull String... elements) 在elements之间插入s -
join
@NotNull public static @NotNull String join(@NotNull @NotNull String s, int start, @NotNull @NotNull String... elements) 在elements中,从start开始,插入s -
join
@NotNull public static @NotNull String join(@NotNull @NotNull String s, @NotNull @NotNull List<String> elements) 在elements之间插入s
-