Class StringUtil

java.lang.Object
ca.spottedleaf.common.util.StringUtil

public final class StringUtil extends Object
  • Constructor Details

    • StringUtil

      public StringUtil()
  • Method Details

    • split

      public static String[] split(String value, char separator)
      Like String.split(String), but without regex. This split additionally does not remove trailing empty strings. For example, splitting the value "world" on 'd' will yield "worl" and "", whereas the String method will yield only "worl".
      Parameters:
      value - The string to split.
      separator - The separator.
      Returns:
      The string split by the separator.
    • startsWithIgnoreCase

      public static boolean startsWithIgnoreCase(String string, String prefix)