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

com.ringcentral.platform.metrics.infoProviders.MetricNamedInfoProvider Maven / Gradle / Ivy

package com.ringcentral.platform.metrics.infoProviders;

import java.util.List;
import com.ringcentral.platform.metrics.names.MetricNamed;

public interface MetricNamedInfoProvider {
    default I infoFor(MetricNamed named) {
        List infos = infosFor(named);
        return infos.isEmpty() ? null : infos.get(infos.size() - 1);
    }

    List infosFor(MetricNamed named);
}