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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Environment
    Standard Environment implementation backed by System.getenv(String).
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name)
    Gets the value of the specified environment variable.
  • Field Details

  • Method Details

    • get

      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