@Test public void appliesOnComplete() { try { String message = ""; for (String s : "Hello, pname . Your display name is pdname ".split(" ")) { String apply = SIMPLE_PLACEHOLDER.apply(create(s)); if (apply != null) { s = apply; } message += s + " "; } SIMPLE_PLACEHOLDER.onComplete(message); } catch (Exception e) { e.printStackTrace(); } }
@Override public void onComplete(String string) { }
SimplePlaceholder implements Placeholder { @Override public void onComplete(String string) { } }
SimplePlaceholder implements Placeholder { @Override public void onComplete(String string) { } SimplePlaceholder(@Nonnull String... placeholders); }
SimplePlaceholder implements Placeholder { @Override public void onComplete(String string) { } SimplePlaceholder(@Nonnull String... placeholders); @Override void onComplete(String string); @Override boolean isPlaceholder(@Nullable String string); @Override @Nonnull List<String> getPlaceholders(); }
SimplePlaceholder implements Placeholder { @Override public void onComplete(String string) { } SimplePlaceholder(@Nonnull String... placeholders); @Override void onComplete(String string); @Override boolean isPlaceholder(@Nullable String string); @Override @Nonnull List<String> getPlaceholders();  }