@Test public void testPlaceholderFunction() { String input = "Hi, my IGN is {pname}. However, my display name is {pdname}."; String expected = input.replace("{pname}", PNAME).replace("{pdname}", PDNAME); assertEquals(expected, set.apply(input)); }
@Nonnull public String apply(@Nonnull String input) { return apply(PlaceholderData.build(input)); }
PlaceholderSet extends HashSet<T> { @Nonnull public String apply(@Nonnull String input) { return apply(PlaceholderData.build(input)); } }
PlaceholderSet extends HashSet<T> { @Nonnull public String apply(@Nonnull String input) { return apply(PlaceholderData.build(input)); } PlaceholderSet();  PlaceholderSet(@Nonnull PlaceholderFunction function);  PlaceholderSet(Collection<T> c);  PlaceholderSet(Collection<T> c, @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity, float loadFactor);  PlaceholderSet(int initialCapacity, float loadFactor,
                        @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity);  PlaceholderSet(int initialCapacity, @Nullable PlaceholderFunction function); }
PlaceholderSet extends HashSet<T> { @Nonnull public String apply(@Nonnull String input) { return apply(PlaceholderData.build(input)); } PlaceholderSet();  PlaceholderSet(@Nonnull PlaceholderFunction function);  PlaceholderSet(Collection<T> c);  PlaceholderSet(Collection<T> c, @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity, float loadFactor);  PlaceholderSet(int initialCapacity, float loadFactor,
                        @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity);  PlaceholderSet(int initialCapacity, @Nullable PlaceholderFunction function); boolean hasPlaceholder(@Nonnull String placeholder); @Nonnull String apply(@Nonnull String input); List<String> apply(@Nonnull List<String> list); @Nonnull String apply(@Nonnull PlaceholderData data); PlaceholderFunction getPlaceholderFunction(); void setPlaceholderFunction(PlaceholderFunction function); }
PlaceholderSet extends HashSet<T> { @Nonnull public String apply(@Nonnull String input) { return apply(PlaceholderData.build(input)); } PlaceholderSet();  PlaceholderSet(@Nonnull PlaceholderFunction function);  PlaceholderSet(Collection<T> c);  PlaceholderSet(Collection<T> c, @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity, float loadFactor);  PlaceholderSet(int initialCapacity, float loadFactor,
                        @Nullable PlaceholderFunction function);  PlaceholderSet(int initialCapacity);  PlaceholderSet(int initialCapacity, @Nullable PlaceholderFunction function); boolean hasPlaceholder(@Nonnull String placeholder); @Nonnull String apply(@Nonnull String input); List<String> apply(@Nonnull List<String> list); @Nonnull String apply(@Nonnull PlaceholderData data); PlaceholderFunction getPlaceholderFunction(); void setPlaceholderFunction(PlaceholderFunction function);  }