Rabbit-R1/original r1/java/sources/io/sentry/metrics/SetMetric.java

32 lines
806 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
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();
}
}