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