public interface MetricPredicate
MetricPredicate
is used to determine whether a metric should be included when sorting
and filtering metrics. This is especially useful for limited metric reporting.Modifier and Type | Field and Description |
---|---|
static MetricPredicate |
ALL
A predicate which matches all inputs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(MetricName name,
Metric metric)
Returns
true if the metric matches the predicate. |
static final MetricPredicate ALL
boolean matches(MetricName name, Metric metric)
true
if the metric matches the predicate.name
- the name of the metricmetric
- the metric itselftrue
if the predicate applies, false
otherwiseCopyright © 2014. All Rights Reserved.