mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
53 lines
1.4 KiB
Java
53 lines
1.4 KiB
Java
package io.sentry.config;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public interface PropertiesProvider {
|
|
Map<String, String> getMap(String str);
|
|
|
|
String getProperty(String str);
|
|
|
|
default List<String> getList(String str) {
|
|
String property = getProperty(str);
|
|
return property != null ? Arrays.asList(property.split(",")) : Collections.emptyList();
|
|
}
|
|
|
|
default String getProperty(String str, String str2) {
|
|
String property = getProperty(str);
|
|
return property != null ? property : str2;
|
|
}
|
|
|
|
default Boolean getBooleanProperty(String str) {
|
|
String property = getProperty(str);
|
|
if (property != null) {
|
|
return Boolean.valueOf(property);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
default Double getDoubleProperty(String str) {
|
|
String property = getProperty(str);
|
|
if (property != null) {
|
|
try {
|
|
return Double.valueOf(property);
|
|
} catch (NumberFormatException unused) {
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
default Long getLongProperty(String str) {
|
|
String property = getProperty(str);
|
|
if (property != null) {
|
|
try {
|
|
return Long.valueOf(property);
|
|
} catch (NumberFormatException unused) {
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|