tech.jhipster.lite.module.domain.replacement.ElementReplacer Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.replacement;
import java.util.function.BiFunction;
public interface ElementReplacer {
ReplacementCondition condition();
boolean notMatchIn(String content);
BiFunction replacement();
String searchMatcher();
default boolean dontNeedReplacement(String contentBeforeReplacement, String replacement) {
return !condition().needReplacement(contentBeforeReplacement, replacement);
}
}