Class StringMan

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

public class StringMan extends Object
  • Constructor Details

  • 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

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

      @Deprecated(forRemoval=true, since="6.11.1") public static String getString(Object obj)
      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(forRemoval=true, since="6.11.1") public static String replaceFirst(char c, String s)
      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(forRemoval=true, since="6.11.1") public static boolean isAlphanumeric(String str)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unused internally. Scheduled for removal in next major release.
    • isAlphanumericUnd

      public static boolean isAlphanumericUnd(String str)
    • isAlpha

      @Deprecated(forRemoval=true, since="6.11.1") public static boolean isAlpha(String str)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unused internally. Scheduled for removal in next major release.
    • join

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

      public static String joinOrdered(Collection<?> collection, String delimiter)
    • 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(forRemoval=true, since="6.11.1") public static boolean isAsciiPrintable(char c)
      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(forRemoval=true, since="6.11.1") public static boolean isAsciiPrintable(String s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unused internally. Scheduled for removal in next major release.
    • getLevenshteinDistance

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

      public static String join(Object[] array, String delimiter)
    • 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

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

      public static boolean isEqual(String a, String b)
    • 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

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

      @Deprecated(forRemoval=true, since="6.11.1") public static boolean contains(String name, char c)
      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

      public static @NonNull List<String> splitMessage(@NonNull String message)
      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"]