Class PatternUtils

java.lang.Object
io.github.thebusybiscuit.slimefun4.utils.PatternUtils

public final class PatternUtils extends Object
This class is created for common-use patterns used in things such as String.split(String).
Every time something like String.split(String) is called it will compile a Pattern, for code that is called often this can be a massive performance loss. This class solves that, one compile but many uses!
Author:
Walshy, TheBusyBiscuit
  • Field Details

    • SLASH_SEPARATOR

      public static final Pattern SLASH_SEPARATOR
    • YAML_ENTRY

      public static final Pattern YAML_ENTRY
    • MINECRAFT_NAMESPACEDKEY

      public static final Pattern MINECRAFT_NAMESPACEDKEY
    • MINECRAFT_TAG

      public static final Pattern MINECRAFT_TAG
    • SLIMEFUN_TAG

      public static final Pattern SLIMEFUN_TAG
    • USES_LEFT_LORE

      public static final Pattern USES_LEFT_LORE