![JAR search and dependency download from the Maven repository](/logo.png)
org.metricssampler.values.NameRegExpValueTransformer Maven / Gradle / Ivy
The newest version!
package org.metricssampler.values;
import org.metricssampler.config.NameRegExpValueTransformerConfig;
public abstract class NameRegExpValueTransformer implements ValueTransformer {
protected final NameRegExpValueTransformerConfig config;
public NameRegExpValueTransformer(final NameRegExpValueTransformerConfig config) {
this.config = config;
}
@Override
public boolean matches(final String metric) {
return config.getNamePattern().matcher(metric).matches();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy