Rabbit-R1/switch port/java/sources/io/sentry/MeasurementUnit.java

83 lines
1.8 KiB
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package io.sentry;
import java.util.Locale;
/* loaded from: classes3.dex */
public interface MeasurementUnit {
public static final String NONE = "none";
String apiName();
String name();
/* loaded from: classes3.dex */
public enum Duration implements MeasurementUnit {
NANOSECOND,
MICROSECOND,
MILLISECOND,
SECOND,
MINUTE,
HOUR,
DAY,
WEEK;
@Override // io.sentry.MeasurementUnit
public String apiName() {
return name().toLowerCase(Locale.ROOT);
}
}
/* loaded from: classes3.dex */
public enum Information implements MeasurementUnit {
BIT,
BYTE,
KILOBYTE,
KIBIBYTE,
MEGABYTE,
MEBIBYTE,
GIGABYTE,
GIBIBYTE,
TERABYTE,
TEBIBYTE,
PETABYTE,
PEBIBYTE,
EXABYTE,
EXBIBYTE;
@Override // io.sentry.MeasurementUnit
public String apiName() {
return name().toLowerCase(Locale.ROOT);
}
}
/* loaded from: classes3.dex */
public enum Fraction implements MeasurementUnit {
RATIO,
PERCENT;
@Override // io.sentry.MeasurementUnit
public String apiName() {
return name().toLowerCase(Locale.ROOT);
}
}
/* loaded from: classes3.dex */
public static final class Custom implements MeasurementUnit {
private final String name;
@Override // io.sentry.MeasurementUnit
public String name() {
return this.name;
}
public Custom(String str) {
this.name = str;
}
@Override // io.sentry.MeasurementUnit
public String apiName() {
return name().toLowerCase(Locale.ROOT);
}
}
}