Package io.sentry.config
Interface PropertiesProvider
-
public interface PropertiesProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @Nullable java.lang.BooleangetBooleanProperty(@NotNull java.lang.String property)Resolves a boolean property given by it's name.default @Nullable java.lang.DoublegetDoubleProperty(@NotNull java.lang.String property)Resolves aDoubleproperty given by it's name.default @NotNull java.util.List<java.lang.String>getList(@NotNull java.lang.String property)Resolves a list of values for a property given by it's name.@NotNull java.util.Map<java.lang.String,java.lang.String>getMap(@NotNull java.lang.String property)Resolves a map for a property given by it's name.@Nullable java.lang.StringgetProperty(@NotNull java.lang.String property)Resolves property given by it's name.default @NotNull java.lang.StringgetProperty(@NotNull java.lang.String property, @NotNull java.lang.String defaultValue)Resolves property given by it's name.
-
-
-
Method Detail
-
getProperty
@Nullable @Nullable java.lang.String getProperty(@NotNull @NotNull java.lang.String property)Resolves property given by it's name.- Parameters:
property- - the property name- Returns:
- property value or
nullif not found.
-
getMap
@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> getMap(@NotNull @NotNull java.lang.String property)Resolves a map for a property given by it's name.- Parameters:
property- - the property name- Returns:
- the map or empty map if not found
-
getList
@NotNull default @NotNull java.util.List<java.lang.String> getList(@NotNull @NotNull java.lang.String property)Resolves a list of values for a property given by it's name.- Parameters:
property- - the property name- Returns:
- the list or empty list if not found
-
getProperty
@NotNull default @NotNull java.lang.String getProperty(@NotNull @NotNull java.lang.String property, @NotNull @NotNull java.lang.String defaultValue)Resolves property given by it's name.- Parameters:
property- - the property namedefaultValue- - the default value if property is not set- Returns:
- property value or the default value if not found.
-
getBooleanProperty
@Nullable default @Nullable java.lang.Boolean getBooleanProperty(@NotNull @NotNull java.lang.String property)Resolves a boolean property given by it's name.- Parameters:
property- - the property name- Returns:
- property value or the default value if not found.
-
getDoubleProperty
@Nullable default @Nullable java.lang.Double getDoubleProperty(@NotNull @NotNull java.lang.String property)Resolves aDoubleproperty given by it's name.- Parameters:
property- - the property name- Returns:
- property value or the default value if not found.
-
-