pl.allegro.tech.hermes.api.helpers.Replacer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-api Show documentation
Show all versions of hermes-api Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.api.helpers;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public final class Replacer {
public static List replaceInAll(String regex, String replacement, String... strings) {
return Arrays.stream(strings).map(s -> s.replaceAll(regex, replacement)).collect(Collectors.toList());
}
}