Class StringReplacer

java.lang.Object
me.lokka30.levelledmobs.misc.StringReplacer

public class StringReplacer extends Object
  • Field Details

    • text

      @NotNull public @NotNull String text
  • Constructor Details

    • StringReplacer

      public StringReplacer(@NotNull @NotNull String text)
  • Method Details

    • replaceIfExists

      public void replaceIfExists(@NotNull @NotNull String target, @Nullable @Nullable Supplier<String> operation)
    • replace

      public void replace(@NotNull @NotNull String replace, double replaceWith)
    • replace

      public void replace(@NotNull @NotNull String replace, int replaceWith)
    • replace

      public StringReplacer replace(@NotNull @NotNull String replace, @Nullable @Nullable String replaceWith)
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(@NotNull @NotNull CharSequence s)