Package com.plotsquared.core.util
Class StringMan
java.lang.Object
com.plotsquared.core.util.StringMan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic intstatic Stringstatic intintersection(Set<String> options, String[] toCheck) static booleanstatic booleanisAlphanumeric(String str) static booleanisAlphanumericUnd(String str) static booleanisAsciiPrintable(char c) static booleanstatic booleanstatic booleanisEqualIgnoreCase(String a, String b) static booleanisEqualIgnoreCaseToAny(@NonNull String a, String... args) static booleanisEqualToAny(String a, String... args) static Stringstatic Stringstatic Stringjoin(Collection<?> collection, char delimiter) static Stringjoin(Collection<?> collection, String delimiter) static StringjoinOrdered(Collection<?> collection, String delimiter) <T> Collection<T>match(Collection<T> col, String startsWith) static Stringstatic StringreplaceAll(String string, Object... pairs) static StringreplaceFirst(char c, String s) static StringreplaceFromMap(String string, Map<String, String> replacements) splitMessage(@NonNull String message)
-
Constructor Details
-
StringMan
public StringMan()
-
-
Method Details
-
replaceFromMap
-
intersection
-
getString
-
replaceFirst
-
replaceAll
-
isAlphanumeric
-
isAlphanumericUnd
-
isAlpha
-
join
-
joinOrdered
-
join
-
isAsciiPrintable
public static boolean isAsciiPrintable(char c) -
isAsciiPrintable
-
getLevenshteinDistance
-
join
-
join
-
isEqualToAny
-
isEqualIgnoreCaseToAny
-
isEqual
-
isEqualIgnoreCase
-
repeat
-
contains
-
match
-
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"]
-