Interface PropertiesProvider


public interface PropertiesProvider
  • Method Details

    • getProperty

      @Nullable @Nullable String getProperty(@NotNull @NotNull String property)
      Resolves property given by it's name.
      Parameters:
      property - - the property name
      Returns:
      property value or null if not found.
    • getMap

      @NotNull @NotNull Map<String,String> getMap(@NotNull @NotNull 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 List<String> getList(@NotNull @NotNull 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 String getProperty(@NotNull @NotNull String property, @NotNull @NotNull String defaultValue)
      Resolves property given by it's name.
      Parameters:
      property - - the property name
      defaultValue - - the default value if property is not set
      Returns:
      property value or the default value if not found.
    • getBooleanProperty

      @Nullable default @Nullable Boolean getBooleanProperty(@NotNull @NotNull 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 Double getDoubleProperty(@NotNull @NotNull String property)
      Resolves a Double property given by it's name.
      Parameters:
      property - - the property name
      Returns:
      property value or the default value if not found.
    • getLongProperty

      @Nullable default @Nullable Long getLongProperty(@NotNull @NotNull String property)
      Resolves a Long property given by it's name.
      Parameters:
      property - - the property name
      Returns:
      property value or the default value if not found.