org.springframework.core.env

Interface PropertySources

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method and Description
      boolean contains(java.lang.String name)
      Return whether a property source with the given name is contained.
      PropertySource<?> get(java.lang.String name)
      Return the property source with the given name, null if not found.
      default java.util.stream.Stream<PropertySource<?>> stream()
      Return a sequential Stream containing the property sources.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • stream

        default java.util.stream.Stream<PropertySource<?>> stream()
        Return a sequential Stream containing the property sources.
        Since:
        5.1
      • contains

        boolean contains(java.lang.String name)
        Return whether a property source with the given name is contained.
        Parameters:
        name - the name of the property source to find