Package com.plotsquared.core.util
Class StringMan
java.lang.Object
com.plotsquared.core.util.StringMan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated, for removal: This API element is subject to removal in a future version.Unused internally.static intstatic StringDeprecated, for removal: This API element is subject to removal in a future version.Unused internally.static intintersection(Set<String> options, String[] toCheck) static booleanDeprecated, for removal: This API element is subject to removal in a future version.Unused internally.static booleanisAlphanumeric(String str) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static booleanisAlphanumericUnd(String str) static booleanisAsciiPrintable(char c) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Unused internally.static booleanstatic booleanisEqualIgnoreCase(String a, String b) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static booleanisEqualIgnoreCaseToAny(@NonNull String a, String... args) static booleanisEqualToAny(String a, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static StringDeprecated, for removal: This API element is subject to removal in a future version.Unused internally.static Stringstatic Stringjoin(Collection<?> collection, char delimiter) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static Stringjoin(Collection<?> collection, String delimiter) static StringjoinOrdered(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 Stringstatic StringreplaceAll(String string, Object... pairs) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static StringreplaceFirst(char c, String s) Deprecated, for removal: This API element is subject to removal in a future version.Unused internally.static StringreplaceFromMap(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"]
-