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

tech.jhipster.lite.module.domain.replacement.ElementReplacer 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 interface ElementReplacer {
  ReplacementCondition condition();

  boolean notMatchIn(String content);

  BiFunction replacement();

  String searchMatcher();

  default boolean dontNeedReplacement(String contentBeforeReplacement, String replacement) {
    return !condition().needReplacement(contentBeforeReplacement, replacement);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy