All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.module.domain.replacement.FileStartReplacer Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
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--";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy