1 package com.github.triceo.splitlog.api; 2 3 /** 4 * Allows users to filter based on their own metric criteria. 5 * 6 * @param <T> 7 * Numeric type that this metric will count in. 8 * @param <S> 9 * Where this is getting its {@link Message}s from. 10 */ 11 public interface MessageMetricCondition<T extends Number, S extends MessageProducer<S>> { 12 13 /** 14 * Evaluate metric against a user-provided condition. 15 * 16 * @param evaluate 17 * The metric to evaluate. 18 * @return True if the metric matches. 19 */ 20 boolean accept(MessageMetric<T, S> evaluate); 21 22 }