Class StringMan

java.lang.Object
com.fastasyncworldedit.core.util.StringMan

public class StringMan extends Object
  • Constructor Details

    • StringMan

      public StringMan()
  • Method Details

    • containsAny

      public static boolean containsAny(CharSequence sequence, String any)
    • containsIgnoreCase

      public static boolean containsIgnoreCase(String haystack, String needle)
    • findMatchingBracket

      public static int findMatchingBracket(CharSequence sequence, int index)
    • humanReadableByteCountBin

      public static String humanReadableByteCountBin(long bytes)
    • prettyFormat

      public static String prettyFormat(double d)
    • isBracketForwards

      public static boolean isBracketForwards(char c)
    • getMatchingBracket

      public static char getMatchingBracket(char c)
    • parseInt

      public static int parseInt(CharSequence string)
    • removeFromSet

      public static String removeFromSet(String string, Collection<String> replacements)
    • indexOf

      public static int indexOf(String input, int start, char... values)
    • toProperCase

      public static String toProperCase(String s)
    • split

      public static List<String> split(String input, char delim)
    • intersection

      public static int intersection(Set<String> options, String[] toCheck)
    • padRight

      public static String padRight(String s, int n)
    • padLeft

      public static String padLeft(String s, int n)
    • getString

      public static String getString(Object obj)
    • replaceFirst

      public static String replaceFirst(char c, String s)
    • replaceAll

      public static String replaceAll(String string, Object... pairs)
    • isAlphanumeric

      public static boolean isAlphanumeric(String str)
    • isAlphanumericUnd

      public static boolean isAlphanumericUnd(CharSequence str)
    • isAlpha

      public static boolean isAlpha(String str)
    • join

      public static String join(Collection<?> collection, String delimiter)
    • joinOrdered

      public static String joinOrdered(Collection<?> collection, String delimiter)
    • join

      public static String join(Collection<?> collection, char delimiter)
    • isAsciiPrintable

      public static boolean isAsciiPrintable(char c)
    • isAsciiPrintable

      public static boolean isAsciiPrintable(String s)
    • blockStateComparator

      public static Comparator<String> blockStateComparator(String input)
    • blockStateMatches

      public static boolean blockStateMatches(String input, String item)
    • blockStateStringDistance

      public static int blockStateStringDistance(String input, String item)
    • getLevenshteinDistance

      public static int getLevenshteinDistance(String s, String t)
    • join

      public static <T> String join(Collection<T> arr, String delimiter, Function<T,String> funx)
    • join

      public static String join(Object[] array, String delimiter)
    • toInteger

      public static Integer toInteger(String string, int start, int end)
    • join

      public static String join(int[] array, String delimiter)
    • isEqualToAny

      public static boolean isEqualToAny(String a, String... args)
    • isEqualIgnoreCaseToAny

      public static boolean isEqualIgnoreCaseToAny(String a, String... args)
    • isEqual

      public static boolean isEqual(String a, String b)
    • isEqualIgnoreCase

      public static boolean isEqualIgnoreCase(String a, String b)
    • repeat

      public static String repeat(String s, int n)
    • containsUuid

      public static boolean containsUuid(String str)
      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