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

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

package com.ringcentral.platform.metrics;

import java.util.Map;
import static java.util.Collections.*;

public class UnmodifiableMetricContext extends AbstractMetricContext {

    private static final UnmodifiableMetricContext EMPTY = new UnmodifiableMetricContext();

    public static UnmodifiableMetricContext emptyUnmodifiableMetricContext() {
        return EMPTY;
    }

    public UnmodifiableMetricContext() {
        this(emptyMap());
    }

    public UnmodifiableMetricContext(Map props) {
        super(Map.copyOf(props));
    }

    public UnmodifiableMetricContext(AbstractMetricContext source) {
        super(Map.copyOf(source.properties()));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy