Rabbit-R1/switch port/java/sources/io/sentry/metrics/SetMetric.java
2024-05-21 17:08:36 -04:00

31 lines
806 B
Java

package io.sentry.metrics;
import io.sentry.MeasurementUnit;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/* loaded from: classes3.dex */
public final class SetMetric extends Metric {
private final Set<Integer> values;
@Override // io.sentry.metrics.Metric
public Iterable<?> serialize() {
return this.values;
}
public SetMetric(String str, MeasurementUnit measurementUnit, Map<String, String> map) {
super(MetricType.Set, str, measurementUnit, map);
this.values = new HashSet();
}
@Override // io.sentry.metrics.Metric
public void add(double d) {
this.values.add(Integer.valueOf((int) d));
}
@Override // io.sentry.metrics.Metric
public int getWeight() {
return this.values.size();
}
}