Interface Environment


  • public interface Environment
    • Method Detail

      • containsProperty

        default boolean containsProperty​(String name)
        Return whether this PropertySource contains the given name.

        This implementation simply checks for a null return value from getProperty(String). Subclasses may wish to implement a more efficient algorithm if possible.

        Parameters:
        name - the property name to find
      • getProperty

        Optional<Object> getProperty​(String name)
        Return the value associated with the given name, or null if not found.
        Parameters:
        name - the property to find