public interface PropertiesProvider
Modifier and Type | Method and Description |
---|---|
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.String |
getProperty(@NotNull java.lang.String property)
Resolves property given by it's name.
|
default @NotNull java.lang.String |
getProperty(@NotNull java.lang.String property,
@NotNull java.lang.String defaultValue)
Resolves property given by it's name.
|
@Nullable @Nullable java.lang.String getProperty(@NotNull @NotNull java.lang.String property)
property
- - the property namenull
if not found.@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> getMap(@NotNull @NotNull java.lang.String property)
property
- - the property name@NotNull default @NotNull java.util.List<java.lang.String> getList(@NotNull @NotNull java.lang.String property)
property
- - the property name@NotNull default @NotNull java.lang.String getProperty(@NotNull @NotNull java.lang.String property, @NotNull @NotNull java.lang.String defaultValue)
property
- - the property namedefaultValue
- - the default value if property is not set