Package io.sentry.config
Interface PropertiesProvider
public interface PropertiesProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable Boolean
getBooleanProperty
(@NotNull String property) Resolves a boolean property given by it's name.default @Nullable Double
getDoubleProperty
(@NotNull String property) Resolves aDouble
property given by it's name.Resolves a list of values for a property given by it's name.default @Nullable Long
getLongProperty
(@NotNull String property) Resolves aLong
property given by it's name.Resolves a map for a property given by it's name.@Nullable String
getProperty
(@NotNull String property) Resolves property given by it's name.default @NotNull String
getProperty
(@NotNull String property, @NotNull String defaultValue) Resolves property given by it's name.
-
Method Details
-
getProperty
Resolves property given by it's name.- Parameters:
property
- - the property name- Returns:
- property value or
null
if not found.
-
getMap
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
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 String getProperty(@NotNull @NotNull String property, @NotNull @NotNull 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
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
Resolves aDouble
property given by it's name.- Parameters:
property
- - the property name- Returns:
- property value or the default value if not found.
-
getLongProperty
Resolves aLong
property given by it's name.- Parameters:
property
- - the property name- Returns:
- property value or the default value if not found.
-