tech.jhipster.lite.module.domain.replacement.FileStartReplacer Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.replacement;
import java.util.function.BiFunction;
public record FileStartReplacer(ReplacementCondition condition) implements ElementReplacer {
@Override
public boolean notMatchIn(String content) {
return false;
}
@Override
public BiFunction replacement() {
return (content, replacement) -> replacement + content;
}
@Override
public String searchMatcher() {
return "--file-start--";
}
}