Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.core;

A MetricPredicate is used to determine whether a metric should be included when sorting and filtering metrics. This is especially useful for limited metric reporting.
 
 public interface MetricPredicate {
    
A predicate which matches all inputs.
    MetricPredicate ALL = new MetricPredicate() {
        @Override
        public boolean matches(MetricName nameMetric metric) {
            return true;
        }
    };

    
Returns true if the metric matches the predicate.

Parameters:
name the name of the metric
metric the metric itself
Returns:
true if the predicate applies, false otherwise
    boolean matches(MetricName nameMetric metric);
New to GrepCode? Check out our FAQ X