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

com.ringcentral.platform.metrics.MetricContext Maven / Gradle / Ivy

package com.ringcentral.platform.metrics;

public interface MetricContext {
    default boolean has(Object key) {
        return get(key) != null;
    }

    default  V get(Object key, V defaultValue) {
        V v = get(key);
        return v != null ? v : defaultValue;
    }

    default  V getForClass(Class key) {
        return get(key);
    }

     V get(Object key);
    boolean isEmpty();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy