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

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