Package com.fastasyncworldedit.core.util
Class StringMan
java.lang.Object
com.fastasyncworldedit.core.util.StringMan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator
<String> blockStateComparator
(String input) static boolean
blockStateMatches
(String input, String item) static int
blockStateStringDistance
(String input, String item) static boolean
containsAny
(CharSequence sequence, String any) static boolean
containsIgnoreCase
(String haystack, String needle) static boolean
containsUuid
(String str) Returns if there is a valid uuid contained inside the provided String.static int
findMatchingBracket
(CharSequence sequence, int index) static int
static char
getMatchingBracket
(char c) static String
static String
humanReadableByteCountBin
(long bytes) static int
static int
intersection
(Set<String> options, String[] toCheck) static boolean
static boolean
isAlphanumeric
(String str) static boolean
static boolean
isAsciiPrintable
(char c) static boolean
static boolean
isBracketForwards
(char c) static boolean
static boolean
isEqualIgnoreCase
(String a, String b) static boolean
isEqualIgnoreCaseToAny
(String a, String... args) static boolean
isEqualToAny
(String a, String... args) static String
static String
static String
join
(Collection<?> collection, char delimiter) static String
join
(Collection<?> collection, String delimiter) static <T> String
join
(Collection<T> arr, String delimiter, Function<T, String> funx) static String
joinOrdered
(Collection<?> collection, String delimiter) static String
static String
static int
parseInt
(CharSequence string) static String
prettyFormat
(double d) static String
removeFromSet
(String string, Collection<String> replacements) static String
static String
replaceAll
(String string, Object... pairs) static String
replaceFirst
(char c, String s) static Integer
static String
-
Constructor Details
-
StringMan
public StringMan()
-
-
Method Details
-
containsAny
-
containsIgnoreCase
-
findMatchingBracket
-
humanReadableByteCountBin
-
prettyFormat
-
isBracketForwards
public static boolean isBracketForwards(char c) -
getMatchingBracket
public static char getMatchingBracket(char c) -
parseInt
-
removeFromSet
-
indexOf
-
toProperCase
-
split
-
intersection
-
padRight
-
padLeft
-
getString
-
replaceFirst
-
replaceAll
-
isAlphanumeric
-
isAlphanumericUnd
-
isAlpha
-
join
-
joinOrdered
-
join
-
isAsciiPrintable
public static boolean isAsciiPrintable(char c) -
isAsciiPrintable
-
blockStateComparator
-
blockStateMatches
-
blockStateStringDistance
-
getLevenshteinDistance
-
join
-
join
-
toInteger
-
join
-
isEqualToAny
-
isEqualIgnoreCaseToAny
-
isEqual
-
isEqualIgnoreCase
-
repeat
-
containsUuid
Returns if there is a valid uuid contained inside the provided String.- Parameters:
str
- provided string- Returns:
- true if an uuid was found, false if not
- Since:
- 2.0.0
-