Package com.plotsquared.core.util
Class StringMan
java.lang.Object
com.plotsquared.core.util.StringMan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static int
static String
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static int
intersection
(Set<String> options, String[] toCheck) static boolean
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static boolean
isAlphanumeric
(String str) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static boolean
isAlphanumericUnd
(String str) static boolean
isAsciiPrintable
(char c) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static boolean
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static boolean
static boolean
isEqualIgnoreCase
(String a, String b) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static boolean
isEqualIgnoreCaseToAny
(@NonNull String a, String... args) static boolean
isEqualToAny
(String a, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
static String
join
(Collection<?> collection, char delimiter) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
join
(Collection<?> collection, String delimiter) static String
joinOrdered
(Collection<?> collection, String delimiter) <T> Collection<T>
match
(Collection<T> col, String startsWith) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
static String
replaceAll
(String string, Object... pairs) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
replaceFirst
(char c, String s) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static String
replaceFromMap
(String string, Map<String, String> replacements) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.splitMessage
(@NonNull String message)
-
Constructor Details
-
StringMan
public StringMan()
-
-
Method Details
-
replaceFromMap
@Deprecated(forRemoval=true, since="6.11.1") public static String replaceFromMap(String string, Map<String, String> replacements) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
intersection
-
getString
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
replaceFirst
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
replaceAll
@Deprecated(forRemoval=true, since="6.11.1") public static String replaceAll(String string, Object... pairs) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isAlphanumeric
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isAlphanumericUnd
-
isAlpha
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
join
-
joinOrdered
-
join
@Deprecated(forRemoval=true, since="6.11.1") public static String join(Collection<?> collection, char delimiter) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isAsciiPrintable
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isAsciiPrintable
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
getLevenshteinDistance
-
join
-
join
@Deprecated(forRemoval=true, since="6.11.1") public static String join(int[] array, String delimiter) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isEqualToAny
@Deprecated(forRemoval=true, since="6.11.1") public static boolean isEqualToAny(String a, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
isEqualIgnoreCaseToAny
-
isEqual
-
isEqualIgnoreCase
@Deprecated(forRemoval=true, since="6.11.1") public static boolean isEqualIgnoreCase(String a, String b) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
repeat
-
contains
Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
match
@Deprecated(forRemoval=true, since="6.11.1") public <T> Collection<T> match(Collection<T> col, String startsWith) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally. Scheduled for removal in next major release. -
splitMessage
- Parameters:
message
- an input string- Returns:
- a list of strings
- Since:
- 6.4.0
Converts multiple quoted and single strings into a list of strings Input Output title "sub title" ["title", "sub title"] "a title" subtitle ["a title", "subtitle"] "title" "subtitle" ["title", "subtitle"] "PlotSquared is going well" the authors "and many contributors" ["PlotSquared is going well", "the", "authors", "and many contributors"]
-