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

pl.allegro.tech.hermes.api.helpers.Replacer Maven / Gradle / Ivy

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());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy