![JAR search and dependency download from the Maven repository](/logo.png)
com.ringcentral.platform.metrics.labels.DefaultLabelValuesPredicate Maven / Gradle / Ivy
package com.ringcentral.platform.metrics.labels;
import java.util.function.Predicate;
import static java.util.Objects.requireNonNull;
public class DefaultLabelValuesPredicate implements LabelValuesPredicate {
private final Predicate predicate;
public static DefaultLabelValuesPredicate labelValuesMatching(Predicate predicate) {
return new DefaultLabelValuesPredicate(predicate);
}
public DefaultLabelValuesPredicate(Predicate predicate) {
this.predicate = requireNonNull(predicate);
}
@Override
public boolean matches(LabelValues labelValues) {
return predicate.test(labelValues);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy