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 extends V> key) {
return get(key);
}
V get(Object key);
boolean isEmpty();
}