Package dev.qixils.crowdcontrol.util
Class StringUtils
- java.lang.Object
-
- dev.qixils.crowdcontrol.util.StringUtils
-
public final class StringUtils extends Object
Utilities for working with strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull String
repr(@Nullable String string)
Returns a string representation of the given string.
-
-
-
Method Detail
-
repr
@NotNull public static @NotNull String repr(@Nullable @Nullable String string)
Returns a string representation of the given string. If the string is null, returns "null". Else, returns the string surrounded by single quotes.- Parameters:
string
- string to represent- Returns:
- string representation
-
-