Class TextUtils

java.lang.Object
dev.sefiraat.sefilib.string.TextUtils

public final class TextUtils extends Object
This class contains static methods for dealing with strings.
  • Method Details

    • toTitleCase

      @Nonnull public static String toTitleCase(@Nonnull String string)
      Converts the given string into one in Title Case.
      Parameters:
      string - The string to convert.
      Returns:
      The string in Title Case.
    • toTitleCase

      @Nonnull public static String toTitleCase(@Nonnull String string, boolean delimiterToSpace)
      Converts the given string into one in Title Case.
      Parameters:
      string - The string to convert.
      delimiterToSpace - Whether to replace the delimiter with a space.
      Returns:
      The string in Title Case.
    • toTitleCase

      @Nonnull public static String toTitleCase(@Nonnull String string, boolean delimiterToSpace, @Nonnull String delimiters)
      Converts the given string into one in Title Case.
      Parameters:
      string - The string to convert.
      delimiterToSpace - Whether to replace the delimiter with a space.
      delimiters - The delimiters to replace.
      Returns:
      The string in Title Case.
    • getRandomEggName

      @Nonnull public static String getRandomEggName()
      Returns a random name from the EasterEgg list.
      Returns:
      A random name from the EasterEgg list.
    • getEggNames

      @Nonnull public static List<String> getEggNames()
      Returns the EasterEgg list.
      Returns:
      The EasterEgg list.