Interface Environment

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 interface Environment
Provides access to environment variable values.
Since:
2.3.0
Author:
Scott Frederick, Phillip Webb
  • Field Details

  • Method Details

    • get

      @Nullable String get(String name)
      Gets the value of the specified environment variable.
      Parameters:
      name - the name of the environment variable
      Returns:
      the string value of the variable, or null if the variable is not defined in the environment