Class Strings

java.lang.Object
revxrsal.commands.util.Strings

public final class Strings extends Object
General utilities for string operations
  • Field Details

    • SPACE

      public static final Pattern SPACE
      Pattern to split by whitespace
    • VERTICAL_BAR

      public static final Pattern VERTICAL_BAR
      Pattern to split by whitespace
    • SNOWFLAKE

      public static final Pattern SNOWFLAKE
      Pattern to extract snowflake IDs. Useful for JDA
  • Method Details

    • splitBySpace

      public static LinkedList<String> splitBySpace(String text)
    • getSnowflake

      @Nullable public static @Nullable String getSnowflake(String mention)
    • getName

      public static String getName(@NotNull @NotNull Parameter parameter)
    • repeat

      public static String repeat(String string, int count)
    • colorize

      public static String colorize(@NotNull @NotNull String text)