Interface EnvironmentVariableUsagePropertyProvider.EnvironmentVariableSupplier

Enclosing class:
EnvironmentVariableUsagePropertyProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EnvironmentVariableUsagePropertyProvider.EnvironmentVariableSupplier
A functional interface to supply environment variables. This allows for custom implementations to provide environment variable values, which can be useful for testing or when the default System.getenv() is not suitable.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String key)
    Retrieves the value of the specified environment variable.
  • Method Details

    • get

      String get(String key)
      Retrieves the value of the specified environment variable.
      Parameters:
      key - The name of the environment variable to retrieve.
      Returns:
      The value of the environment variable, or null if it is not set.