Class ContentReplacer.Builder<R>

  • Enclosing class:
    ContentReplacer<RECEIVER>

    public static class ContentReplacer.Builder<R>
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected @NotNull java.util.regex.Pattern pattern  
      protected int priority  
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(@NotNull java.util.regex.Pattern pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull ContentReplacer.Builder<R> priority​(int priority)  
      @NotNull ContentReplacer<R> to​(@NotNull java.lang.String content)  
      @NotNull ContentReplacer<R> to​(java.util.function.BiFunction<@Nullable R,​@NotNull java.util.regex.Matcher,​@Nullable java.lang.String> supplier)  
      @NotNull ContentReplacer<R> to​(java.util.function.Function<@Nullable R,​@Nullable java.lang.String> supplier)  
      @NotNull ContentReplacer<R> to​(java.util.function.Supplier<@Nullable java.lang.String> supplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        @NotNull
        protected final @NotNull java.util.regex.Pattern pattern
      • priority

        protected int priority
    • Constructor Detail

      • Builder

        public Builder​(@NotNull
                       @NotNull java.util.regex.Pattern pattern)
    • Method Detail

      • to

        @NotNull
        public @NotNull ContentReplacer<R> to​(java.util.function.BiFunction<@Nullable R,​@NotNull java.util.regex.Matcher,​@Nullable java.lang.String> supplier)
      • to

        @NotNull
        public @NotNull ContentReplacer<R> to​(java.util.function.Function<@Nullable R,​@Nullable java.lang.String> supplier)
      • to

        @NotNull
        public @NotNull ContentReplacer<R> to​(java.util.function.Supplier<@Nullable java.lang.String> supplier)
      • to

        @NotNull
        public @NotNull ContentReplacer<R> to​(@NotNull
                                              @NotNull java.lang.String content)