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

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

There is a newer version: 2.6.22
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy