mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
31 lines
806 B
Java
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();
|
|
}
|
|
}
|